# Exercise 8

Generate a list of all the prime numbers present between 1 and 1000.

What is a prime number

A prime number is a number that is only divisible by 1 and itself. Some prime numbers are 1, 2, 3, 5, 7, 11, 13.

# Hint

You can solve this assignment using different techniques because there is more than one way to find prime numbers. An easy solution is to use nested loops.

Last Updated: Apr 23, 2020, 10:50 AM