You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Micke Nordin 807bc71c30
Merge branch 'master' of https://github.com/mickenordin/lychrel
6 年之前
README.md Update README.md 6 年之前
lychrel.cpp Simplify and add list of all lychrel numbers under 10000 6 年之前
lychrel.hpp Ading source 6 年之前
lychrel.txt Simplify and add list of all lychrel numbers under 10000 6 年之前
main.cpp Simplify and add list of all lychrel numbers under 10000 6 年之前

README.md

lychrel

Iterate through numbers to rule out that they are lychrel numbers

compile with: g++ -o lychrel lychrel.cpp lychrel.hpp main.cpp

run with: ./lychrel "a number you want to check" i.e.:

./lychrel 196

https://en.wikipedia.org/wiki/Lychrel_number