Checking whether a number is prime

Write code · Basic · §7.6 Nested loops and the first math helper

Check whether n is a prime number, and store the result (True or False) in is_prime. A prime number is divisible only by 1 and itself, and 1 is not a prime number.

Starter code

n = 91

Solve this problem in your browser

Python runs in your browser and checks your answer right away. Hints and the answer are on the problem page.