Generates two TeX-files (which then can be used to build a pdf) for a given mersenne prime number with per-page-statistics and calculates the happy number sequence.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
lib
mersennePrimes
nbproject
pdf
src/hmp
.gitignore
HappyMersennePrime.jar
LICENSE
README.md
build.xml
manifest.mf

README.md

HappyMersennePrime

Generates two TeX-files (which then can be used to build a pdf) for a given mersenne prime number with per-page-statistics and calculates the happy number sequence.

Note that all calculations are done in base 10.

Example outputs

Usage

HappyMersennePrime.jar [options] exponent

 -a,--author <name>     name of the author to be used for the front page
 -d,--dir <directory>   directory to look for the mersenne prime number
 -h,--help              display this help
 -s,--source <url>      source url the mersenne number had been downloaded
                        from
 -v,--version           display current version

Usage example

java -jar HappyMersennePrime.jar -d mersennePrimes -s http://lcn2.github.io/mersenne-english-name/m42643801/huge-prime-c-e.html.gz 42643801

This command would search for the mersenne prime number file M42643801.txt.gz in the subdirectory mersennePrimes. The output TeX-files would be written into the current working directory.

Build the pdf

The command to build the pdf is as follows:

pdflatex -synctex=1 -interaction=nonstopmode M57885161.tex

where M57885161.tex is the main TeX-file generated by the application.

Required TeX packages to build the pdf

  • geometry
  • fancyhdr
  • multicol
  • framed
  • siunitx

Development

The IDE for this project is NetBeans.