Fast Enterprises interview question

Write the method isPrime(n) in pseudocode.