LG Soft India Interview Question

Python code on prime numbers