Search:

Type: Posts; User: Norm

Search: Search took 0.13 seconds.

  1. Replies
    17
    Views
    1,891

    Re: Prime number solver.

    No problem. I don't have the algorithm in my head and have to look it up if I need one.
  2. Replies
    17
    Views
    1,891

    Re: Prime number solver.

    My response was to this question:


    Have you found how to do it?
  3. Replies
    17
    Views
    1,891

    Re: Prime number solver.

    I would ask Google how to determine if a number is prime.
  4. Replies
    17
    Views
    1,891

    Re: Prime number solver.

    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...
  5. Replies
    17
    Views
    1,891

    Re: Prime number solver.

    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...
  6. Replies
    17
    Views
    1,891

    Re: Prime number solver.

    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....
Results 1 to 6 of 6