Mersenne Prime # of Digits Calculator

by Jeff Gilchrist
Jeff's E-mail Address

This program will calculate the number of decimal digits in the specified Mersenne number 2^p-1.  More information about Mersenne Primes can be found on the Mersenne Prime Search site.

For the Windows binaries you will need to install the included "vcredist_x86.exe" Microsoft Visual C++ 2008 Redistributable Package if the mprimedigits application does not work when you load it.

Screen Shots

MprimeDigits v1.1 Screen Shot

MprimeDigits v1.1 Command Line Screen Shot


This software is freeware and can be freely distributed. Use at your own risk. I take no responsibility for anything that happens to your equipment.


Click to download the latest version:

Windows Binaries:
MprimeDigits v1.1 (1881 KB)
[SHA-1: 5cecf7907338661d461dfeb2fc2b9c1dc8ecfef5]
[MD5: 39ab3d4210b97a2e83920b1da12fe186]

Linux/Unix Source Code:
MprimeDigits Source v1.1 (2 KB)
[SHA-1: a0c4489a0f7beda3dd4b4c2218d05c2581071dd1]
[MD5: 8906020e02317f2acbdeff087cebedcf]

Recent History

v1.1 (September 3, 2008)
  • Fixed rounding errors reported by R. Gerbicz.
  • Command line version now accepts multiple p values on the command line (ie: mprimedigits 32582657 25964951)
  • Now displays formula used to calculate # of digits so people can better understand how to calculate it themselves if they wish.
v1.0 (August 30, 2008)
  • Initial public release.


If you would like to report any bugs or contact me related to the software you can reach me via e-mail at: Jeff's E-mail Address

  • This web page is maintained by Jeff Gilchrist, Copyright (C) 2008.
  • This web page best viewed using a resolution of 800 x 600 or higher.