Skip to content

Prime

Prime[n] returns the nth prime number.

Attributes[Prime] := {Listable, Protected}

Simple examples

In[1]:= Prime[3]
Out[1]= 5
In[2]:= Prime[3000]
Out[2]= 27449