0
Challenge: Kaprekar numbers
In mathematic, a Kaprekar number for a given base is a non-negative integer, the representation of whose square in that base can be split into two parts that add up to the original number again. For instance, 45 is a Kaprekar number, because 452=2025 and 20+25=45. 297 is a Kaprekar number too, because 2972=88209, which can be split into 88 and 209, and 88+209=297. Task: write a code to find all the Kaprekar numbers from 1 to x (code should provide explanation) in any language you prefer. Enjoy coding :)
3 odpowiedzi
+ 7
a similar challenge had been done before
https://www.sololearn.com/discuss/349533/?ref=app
https://code.sololearn.com/W93QTFLln3s1/?ref=app
+ 1
heres mine
check i exceed the limit upto 400k
https://code.sololearn.com/c27f9n3YZgCX/?ref=app
0
Check my please too )
https://code.sololearn.com/c47gZ16FGWew/#py