MathGroup Archive 2003

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

Search the Archive

Re: Re: Summations with Primes

"Kirk Reinholtz" <kirk.reinholtz at> wrote in message
news:b4s8o1$iel$1 at
> Prime/@Range[1,10] will get the first ten primes.
> Bill Rowe wrote:
> >
> > On 3/12/03 at 2:29 AM, afelder at (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


  • 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