Pergunta de entrevista da empresa LTIMindtree

Approach of solving for prime number