Re: Writing a program to hunt for a prime between n^2 and (n+1)^2

*To*: mathgroup at smc.vnet.net*Subject*: [mg39211] Re: Writing a program to hunt for a prime between n^2 and (n+1)^2*From*: Jens-Peer Kuska <kuska at informatik.uni-leipzig.de>*Date*: Tue, 4 Feb 2003 02:21:11 -0500 (EST)*Organization*: Universitaet Leipzig*References*: <b1icst$bel$1@smc.vnet.net>*Reply-to*: kuska at informatik.uni-leipzig.de*Sender*: owner-wri-mathgroup at wolfram.com

Hi, what is with FindPrimes[n_Integer] := Select[Table[i, {i, n^2, (n + 1)^2}], PrimeQ] Regards Jens Diana wrote: > > Folks, > > I am trying to come up with a snazzy way to hunt for a prime between n^2 and > (n+1)^2. > > Some ideas? > > Thanks, Diana > -- > ===================================================== > "God made the integers, all else is the work of man." > L. Kronecker, Jahresber. DMV 2, S. 19.