Fast Enterprises interview question

Write the pseudocode for the isprime() function.