Schneider Electric Interview Question

To print next nearest prime number