i2i Systems Interview Question

algorithm of finding prime number