Algorithm:
Quote:
Create list of all numbers from 2 to N.
[...]
Question:
Quote:
Can i do this without using an array, or do i have to use an array for sure.
Answer:
"No, you cannot".
[update]
Finding the prime numbers between 0 and 100 wihtout using an array is possible, of course. For each candidate
n
just test if there is a number between
2
and
n
(integer) square root, dividing it
[/update]