about | help | code help+videos | done | prefs |
Returns true if the number is prime, false otherwise. Primes are integers greater than one with no positive divisors besides one and itself. You will find modulus (%) and Math.sqrt() useful isPrime(1) → false isPrime(2) → true isPrime(3) → true ...Save, Compile, Run (ctrl-enter) |
Progress graphs:
Your progress graph for this problem
Random user progress graph for this problem
Random Epic Progress Graph
Difficulty: 180 Post-solution available
Copyright Nick Parlante 2017 - privacy