Challenge 22
🌟
Is Prime?
Create a function which takes in a number as a parameter and returns whether it is a prime number
Examples:
isPrime(7) returns true
isPrime(8) returns false
Extension:
Output the first 1000 prime numbers. Do you notice any loose general patterns?