Pergunta de entrevista da empresa Schneider Electric

To print next nearest prime number