Pergunta de entrevista da empresa QVC

write a function to judge if a number is a primer number