Search:

Type: Posts; User: Faz

Search: Search took 0.32 seconds.

  1. Replies
    12
    Views
    2,570

    Re: I dont get it....please help

    Actually you only need to go to the square root of 50,000 so I think 224 (so that's where they 223 came from)

    That came out as p2 but it's actually p squared.
  2. Replies
    12
    Views
    2,570

    Re: I dont get it....please help

    That would be a simple but not foolproof way of doing it. If you went through and set all mulitples of 2, 3,5,7,9,11 and 13 you would get most primes but there would be some missing.(EDIT: sorry I...
  3. Replies
    12
    Views
    2,570

    Re: I dont get it....please help

    I don't think that would make a difference. Norm is right the logic you are using to check if a number is prime is flawed I just ran a similar logic in VBA in excel to show this.

    9000
    9006
    9009...
  4. Replies
    12
    Views
    2,570

    Re: I dont get it....please help

    Could you give us more detail say give a sample of what you expect to happen for example what you expect the output to be if you set the boundries to 2 and 50 and what output you actually get. Also...
Results 1 to 4 of 4