← Advanced Coding

Prime timePremium

This lesson is part of Premium

A prime number can only be divided by 1 and itself: 2, 3, 5, 7, 11… Primes protect your passwords and credit cards online! To test n, you only need to try dividers up to the square root of n, so you can stop when i * i is bigger than n.

Free lessons are marked on the lesson map. Premium unlocks the rest of the path, including the boss levels and all of the Game Projects.