Code for T/F of prime numbers

Def inclusive of while