Dassault Systèmes Interview Question

Q) write a code to print prime numbers from 1 to 100