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?

Enter bc

The bc command has arbitrary precision arithmetic but will create line breaks with \ characters. This is annoying as all get out. Here is the fix:

echo 'export BC_LINE_LENGTH=1000000' >> ~/.profile
 ~/.profile
PreviousWhat Do You Mean LargeNextPi with bc

Last updated 5 years ago

Was this helpful?