Impel interview question

Determine if an integer is prime.