QS/1 Interview Question

Write an is prime method