Fast Enterprises Interview Question

Write the pseudocode for the isprime() function.