Aa

Text size

?

Map / Methods / 9

⌨️ Write

Is it prime?

Write isPrime so it returns true when n has exactly two divisors (1 and itself). 1 and numbers below it are not prime.

  • return
  • for
  • %