Challenge: Palindromic numbers | Sololearn: Learn to code for FREE!


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


13 Answers

New Answer



here's my try :-


Thank you for challenge :) Here's my try :


My own attempt... Some issues solved :) Python: Ruby:



It's my code...


mine from note: I'll adapt it feature added πŸ‘Œ


here is mine... 🐍


great challenge tnx


Here you go. Checks for valid input


@sayan chandra your code doesn't work if you input palindromic numbers... 😡 Too small!! πŸ˜‰


here is the smallest codeπŸ˜€πŸ˜πŸ˜πŸ˜πŸ˜πŸ˜€πŸ˜Š


ha ha... now it do works...πŸ˜€πŸ˜πŸ˜Š