Quote (LeB @ Dec 3 2014 03:53am)
which language?
post your code also
Its just pseudocode in visual logic, it takes the very basics of programming to help you get the fundamentals.
I need it to print all primes up to your max input but It is printing all odds instead of primes, and not 2 or 3 which are primes.
I have it with a for loop 2 to max because 1 isn't prime so it starts at 2, then i did another for loop to check every number for each number (I) to see if it has a divisible number. I went wrong somewhere in my divisible (prime) check.
E: my instructor said its the right idea i however i should do something about saying it is prime at first and checking that after and if it is confirmed output the number?
This post was edited by Elements_Fury on Dec 3 2014 08:54am