|
|
@ -3,6 +3,7 @@ Iterate through numbers to rule out that they are lychrel numbers
|
|
|
|
|
|
|
|
|
|
|
|
compile with: g++ -o lychrel lychrel.cpp lychrel.hpp main.cpp
|
|
|
|
compile with: g++ -o lychrel lychrel.cpp lychrel.hpp main.cpp
|
|
|
|
|
|
|
|
|
|
|
|
run with: ./lychrel <a number you want to check>
|
|
|
|
run with: ./lychrel "a number you want to check" i.e.:
|
|
|
|
|
|
|
|
./lychrel 196
|
|
|
|
|
|
|
|
|
|
|
|
https://en.wikipedia.org/wiki/Lychrel_number
|
|
|
|
https://en.wikipedia.org/wiki/Lychrel_number
|
|
|
|