Pergunta de entrevista da empresa Consona

Write a program to find the prime number in most effective way