Pregunta de entrevista de Verdis

Write a optimized code for checking a number as prime