What is the largest integer $n$ that the function Prime[n] can take?

  • 4
    $\begingroup$ Does this answer your question? What is so special about Prime?. The documentation of Prime::largp still reports around $2^{42}$ as a potential limit, but the exact number can be implementation-dependent. $\endgroup$
    – MarcoB
    Commented Aug 29, 2023 at 0:01
  • 1
    $\begingroup$ Haha, this made me laugh. My mac pooped out somewhere around 10^17. When I tried 10^18 my kernel crashed and I got this message $\endgroup$
    – ydd
    Commented Aug 29, 2023 at 0:27
  • $\begingroup$ @MarcoB: Thanks a bunch! $\endgroup$
    – Jamai-Con
    Commented Aug 29, 2023 at 1:08


Browse other questions tagged or ask your own question.