Larsen & Toubro interview question

Prime numbers using python. Slicing in python