Fast Enterprises Interview Question

Write the method isPrime(n) in pseudocode.