Fast Enterprises interview question

Write pseudocode for an isPrime() function.