Prime Rune (Math)

Read n and print prime or not prime.

Input: One integer 1 ≤ n ≤ 10^12.

Output: prime or not prime.

Difficulty: Easy. Write your answer in the browser editor, run the examples, then submit it against hidden tests. Python and JavaScript are free; other languages are part of licode Club.

Hint

  • Only test divisors up to √n.

More Math practice