Patch Infotech interview question

Oops question. Prime number algorithm.