Can anybody verfy the output for 9876? I got:
Code: Select all
152044948844121230332399992845875776147947521
There are no tricky input cases AFIK, or did I overlook something?
Help appreciated,
-little joey
Moderator: Board moderators
Code: Select all
152044948844121230332399992845875776147947521
Code: Select all
202100503361683772220167446845875776147947521
Code: Select all
1
2
3
4
5
...
9999
10000
some more inputs:374931278650296101567069263458900577819295745
output:1
2
3
4
5
6
7
8
9
10
12
213
12
123
1000
129
10000
2138
2388
9982
2923
3789
1248
good luck1
3
5
9
13
17
25
33
41
49
81
23068673
81
557057
932385860354049
753665
374931278650296101567069263458900577819295745
2232056032918855745537
32171121664549458018305
349842940301949150532841580402171171125067777
5553502983854702771306497
10290376576559723535098970113
39969446692913153