MathGroup Archive 2003

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

Search the Archive

Re: Re: Summations with Primes

  • To: mathgroup at smc.vnet.net
  • Subject: [mg40028] Re: Re: Summations with Primes
  • From: "AngleWyrm" <no_spam_anglewyrm at hotmail.com>
  • Date: Sun, 16 Mar 2003 02:47:53 -0500 (EST)
  • References: <200303130806.DAA12131@smc.vnet.net> <b4s8o1$iel$1@smc.vnet.net>
  • Sender: owner-wri-mathgroup at wolfram.com

"Kirk Reinholtz" <kirk.reinholtz at jpl.nasa.gov> wrote in message
news:b4s8o1$iel$1 at smc.vnet.net...
> Prime/@Range[1,10] will get the first ten primes.
>
> Bill Rowe wrote:
> >
> > On 3/12/03 at 2:29 AM, afelder at crsi.org (Anthony Felder) wrote:
> >
> > >Can you tell me if, when calculating a summation of f(i) where i goes
> > >from imin to imax, Mathematica can be forced to only use prime values
> > >for i?

Try this:

Prime[Range[10]] // TableForm

Table[{i, Prime[i]}, {i, 1, 10}] // TableForm

--
-Jonathan



  • Prev by Date: Re: Histogram normalization
  • Next by Date: Functions with multiple groups of arguments? [David Park?]
  • Previous by thread: Re: Re: Summations with Primes
  • Next by thread: Re: Summations with Primes