MathGroup Archive 2005

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

Search the Archive

Error: Prime::intpp: Positive integer argument expected in Prime[16.`]

  • To: mathgroup at smc.vnet.net
  • Subject: [mg61851] Error: Prime::intpp: Positive integer argument expected in Prime[16.`]
  • From: Roger Bagula <rlbagulatftn at yahoo.com>
  • Date: Tue, 1 Nov 2005 00:40:00 -0500 (EST)
  • Sender: owner-wri-mathgroup at wolfram.com

I found this sequence of what appears to be irrational numbers,
but keep getting this error that doesn't spot a decent output.
f[m_] := 1 + Sum[1/m^Prime[n], {n, 1, Infinity}]
a = Table[N[f[m]], {m, 2, 25}]
Output={1.41468, 1.15273, 1.07916, 1.04833, 1.03254, 1.02338, 1.01761, 
1.01373,  1.01101, 1.00902, 1.00753, 1.00638, 1.00547, 1.00474, 1.00415, 
1.00366, 1.00326, 1.00292, 1.00263, 1.00238, 1.00216, 1.00197, 1.00181, 
1.00166}
Errors read as:
\!\(\*
   RowBox[{
     RowBox[{\(rime::"intpp"\), ":", " ",
     "\<\"Positive integer argument expected in Prime[
       16.`]. \\!\\( \\*ButtonBox[\\(Moreâ?¦\\), \
ButtonData:>\\\"Prime::intpp\\\", ButtonStyle->\\\"RefGuideLinkText\\\", \
ButtonFrame->\\\"None\\\"]\\)\"\>"}], "\n",
     RowBox[{\(Prime::"intpp"\), ":", " ", "\<\"Positive integer argument \
expected in Prime[16.`]. \\!\\( \\*ButtonBox[\\(Moreâ?¦\\), \
ButtonData:>\\\"Prime::intpp\\\", ButtonStyle->\\\"RefGuideLinkText\\\", \
ButtonFrame->\\\"None\\\"]\\)\"\>"}], "\n",
     RowBox[{\(Prime::"intpp"\), ":", " ",
      "\<\"Positive integer argument expected in Prime[
       17.`]. \\!\\( \\*ButtonBox[\\(Moreâ?¦\\), \
ButtonData:>\\\"Prime::intpp\\\", ButtonStyle->\\\"RefGuideLinkText\\\", \
ButtonFrame->\\\"None\\\"]\\)\"\>"}], "\n",
     RowBox[{\(General::"stop"\), \(\(:\)\(\ \)\), "\<\"Further output of \
Prime::\"\>", "intpp", "\<\" will be suppressed during this calculation. \
\\!\\( \\*ButtonBox[\\(Moreâ?¦\\), ButtonData:>\\\"General::stop\\\", \
ButtonStyle->\\\"RefGuideLinkText\\\",
      ButtonFrame->\\\"None\\\"]\\)\"\>"}]}]\)
More gives:
â?¼ Generated when the indicated argument used in Prime is not a positive 
integer.


  • Prev by Date: Re: Question regarding Mathematica's treatment of whitespace
  • Next by Date: Re: pattern matching question
  • Previous by thread: Re: Re: Question regarding Mathematica's treatment of whitespace
  • Next by thread: Re: Error: Prime::intpp: Positive integer argument expected in Prime[16.`]