Challenge: Palindromic numbers

There is a classical conjecture of unknown origin: "Any positive integer is taken. The number is then written in reverse order; The two numbers are added together. The process is repeated with the sum number, obtaining a second sum, and proceeding in the same way until a palindrome (capicua) is achieved. The conjecture affirms that after finite number of additions will end up obtaining a palindromic number". ---- Did you enjoyed this challenge? Please give it a like..

9/13/2017 6:04:06 PM


15 Answers

New Answer




here's my try :- https://code.sololearn.com/c7bxWeu1AQ9V/?ref=app


Thank you for challenge :) Here's my try : https://code.sololearn.com/cSN15l5uU38J/?ref=app


My own attempt... Some issues solved :) Python: https://code.sololearn.com/c7blN9i1049c/?ref=app Ruby: https://code.sololearn.com/c2jCQiezhBkP/#rb




It's my code... https://code.sololearn.com/ccZ019KDinIR/?ref=app


mine https://code.sololearn.com/Wu67IM6PfdaT/?ref=app from https://www.sololearn.com/Discuss/648908/ note: I'll adapt it feature added 👌


here is mine... 🐍 https://code.sololearn.com/cko23QQoNV8E/?ref=app


great challenge tnx https://code.sololearn.com/cAh22n537Xu0/?ref=app


Here you go. Checks for valid input https://code.sololearn.com/cMs4I8YBYCl0/?ref=app


@sayan chandra your code doesn't work if you input palindromic numbers... 😵 Too small!! 😉


here is the smallest code😀😁😁😁😁😀😊 https://code.sololearn.com/cN8gO2qczL3y/?ref=app


ha ha... now it do works...😀😁😊