Fast Enterprises Interview Question

Pseudocode for an isPrime function.