We were given an assignment in our computer programming 4 class to create a program that will list all the prime numbers below 600 using sieve method but the problem is our professor doesn't allow us to use concepts that she still doesn't teach us and few of those concepts are Boolean and Array. My question is, is it possible to create this program without using Array and Boolean?
Asked
Active
Viewed 51 times
0
-
1In theory, yes, but you should probably ask your professor for clarification on what, exactly, you're allowed to use. – azurefrog Aug 03 '17 at 15:27
-
Are you sure you are required to use the sieve method? The prime numbers can be found naively, without using the sieve. – Klitos Kyriacou Aug 03 '17 at 16:42
-
Have you learned Sets yet? – John Hascall Aug 09 '17 at 07:40