For our first programming assignment you will write a Python program that can print all of the prime numbers between 1 and 1000.
Start by making a list of the first few primes.
primes = [2,3,5,7]
Then, set up a loop that iterates over the range from 10 to 1000. For each number n in this range do the following:
n % d == 0
will tell you whether or not d divides evenly into n.)After you have checked each n in the range, print the list of primes you have found.
Put all of your code into a .py source code file and email that file to me as an attachment.
This assignment is due by the start of class on Tuesday, Sept. 26