Notes on Prime Numbers
  • Introduction
  • Revision History
  • What Do You Mean Large
  • Enter bc
  • Pi with bc
  • C++
  • Ramanujan's constant
  • The Largest Known Prime
  • The Golden Ratio
  • Random Numbers
Powered by GitBook
On this page

Was this helpful?

Ramanujan's constant

PreviousC++NextThe Largest Known Prime

Last updated 5 years ago

Was this helpful?

A mentions which is almost an integer. The formula is:

e^(pi * sqrt(163))

It's easy to compute using bc:

echo 'scale=100 ; e(4*a(1)*sqrt(163))' | bc -l

The result:

262537412640768743.999999999999250072597198185688879353856337336990862707537410378210647910118607 3116295306145602054347

thread at Quora
Ramanujan's constant