Toggle navigation
Mr. Code's Wild Ride
Mr. Code
Curriculum
Showcase
Python
Math
Games
Typing
Sign in
Prime Test
Loops
Step 1
Step 2
Step 3
Step 4
Step 5
Step 4:
Check if the number is divisible by anything other than 1 and itself. If it is, the number is not prime.
Hint:
Make a Boolean variable to store whether the number is prime or not.
Last step
Next step
×
Sign in