Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function isPrimeNumber(n) {
- for (var i = 2; i < n; i++) {
- if(n % i === 0) return false;
- }
- return n > 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement