Fast Enterprises Interview Question

Coding up a isPrime(int i) function.