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.
- pdf/M42643801.pdf which is happy :-).
- pdf/M57885161.pdf which is not happy :-(.
- pdf/M74207281.pdf which is not happy :-(.
- pdf/M77232917.pdf which is not happy :-(.
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
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
M57885161.tex is the main TeX-file generated by the application.
Required TeX packages to build the pdf
The IDE for this project is NetBeans.