Mathematica 9 is now available
Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
2003
*January
*February
*March
*April
*May
*June
*July
*August
*September
*October
*November
*December
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 2003

[Date Index] [Thread Index] [Author Index]

Search the Archive

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.


  • Prev by Date: Re: operate a matrix of derivations
  • Next by Date: Options[] creation
  • Previous by thread: RE: Re: Writing a program to hunt for a prime between n^2 and (n+1)^2
  • Next by thread: diffrence between ver 3.01 and 4.1 regarding N[]?