C++ Primes?
From: Ryan Duchesne (catsanddogs19_at_hotmail.com)
Date: 11/29/03
- Next message: Willem: "Re: Countdown"
- Previous message: Richard Heathfield: "Re: Any experience with "The Last One"?"
- Next in thread: osmium: "Re: C++ Primes?"
- Reply: osmium: "Re: C++ Primes?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: 29 Nov 2003 08:16:17 -0800
Hello I am trying to write a program which will have a loop in which
the program would then set the next 40 primes for each of the numbers
in the loop ie: p[40] will have 40 different primes for each k in the
loop. I guess it could look something like
for (int k=1; k<=10; k++)
p[k]=nextprime(k);
I am not sure how to program this if anyone could give me any advice
or somewhere where I an download the program that would be great thank
you very much for your time.
Cheers,
Ryan Duchesne
- Next message: Willem: "Re: Countdown"
- Previous message: Richard Heathfield: "Re: Any experience with "The Last One"?"
- Next in thread: osmium: "Re: C++ Primes?"
- Reply: osmium: "Re: C++ Primes?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|