Patch Infotech Interview Question

Oops question. Prime number algorithm.