NTT DATA Interview Question

Wrote a code on prime numbers