**A prime number is a natural number greater than 1 that has no positive divisors other than 1 and itself.**

**Continuing on the topic of interview questions for programming and software engineering type positions, I thought I’d brush up on a popular one.**

**Although I have never personally been asked about this, other people have told me that they’ve been asked to determine if a number is prime or to print out all prime numbers up to a certain number.**

**In most programming languages there is a modulus type function for determining the remainder of a division between two numbers.**

**We can certainly use this concept for determining if a number is prime because a modulus expression will return zero if the number isn’t prime.**