Concept Flow - Check if Number is Prime
Start with number n
Check if n <= 1?
Yes→Not Prime, Stop
No
Set divisor = 2
Is divisor * divisor <= n?
No→Prime, Stop
Yes
Check if n % divisor == 0?
Yes→Not Prime, Stop
No
Increment divisor by 1
↩Back to divisor check
Start with the number, check divisors from 2 up to sqrt(n). If any divides n, it's not prime; else it is prime.
