now how would we go about eliminating every third number as well, and continue with every 5, 7, 11, etc. numbers, to be left with all of the prime numbers. We figured out how to eliminate the evens, but we have to go on from there, and print out only the prime numbers.
i.e., start with #'s 1-100, eliminate multiple of 2, the 3, then 5, then 7, until we are left with only the prime numbers from 1 to (n).
IF YOU HAVE NO IDEA WHAT I'M TALKING ABOUT, PLEASE READ THE THREAD TITLED:
whats going onm
thank you