Fast Enterprises interview question

Coding up a isPrime(int i) function.