Fast Enterprises interview question

Pseudocode for an isPrime function.