Larsen & Toubro Interview Question

Prime numbers using python. Slicing in python