No problem. I don't have the algorithm in my head and have to look it up if I need one.
Type: Posts; User: Norm
No problem. I don't have the algorithm in my head and have to look it up if I need one.
My response was to this question:
Have you found how to do it?
I would ask Google how to determine if a number is prime.
This part was confusing:
Is the number the max value for a prime number or the number of prime numbers you want to find?
In pseudo code:
begin loop i = 1 to number
if i is prime
save i...
If the variable: number is the counter of prime numbers you want to find, why is it used anywhere else in the code? It should only count the number of prime numbers found.
What variable...
You have a lot of loops and if tests. What are they all for? Why do the loops use 9 & 10 as end points? What is the array for?
It looks like you wrote a bunch of code without doing a design first....