Sierra Wireless interview question

Write code using Python or java on prime numbers between 1and 20