Domanda di colloquio di Fast Enterprises

Write a method that checks whether a number is prime.