Mathematica 9 is now available
Services & Resources / Wolfram Forums / MathGroup Archive
-----

MathGroup Archive 2010

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

Search the Archive

Are these small primes or huge Integers?

  • To: mathgroup at smc.vnet.net
  • Subject: [mg112396] Are these small primes or huge Integers?
  • From: "Peter Pein" <petsie at dordos.net>
  • Date: Tue, 14 Sep 2010 05:12:58 -0400 (EDT)

Dear group,

the last weekend has been a bit boring and so I got the idea to type

In[1]:= NMaximize[{n,Prime[n]>n,n>=1,Element[n,Integers]},n]

to my surprise I got:

Out[1]= {4.,{n->4}}

(this does not work without warnings with Method->m, m != Automatic)

strange, isn't it?

Best regards,
 Peter
 


  • Prev by Date: Include unconnected nodes in graph plot -- how?
  • Next by Date: Re: Include unconnected nodes in graph plot -- how?
  • Previous by thread: Re: Include unconnected nodes in graph plot -- how?
  • Next by thread: Colorfunction in ContourPlot