Positive decimal integers with the digit 1 occurring exactly twice: Difference between revisions
Content deleted Content added
Line 256: | Line 256: | ||
sum = 0 |
sum = 0 |
||
while substr(cstring,dstring) > 0 |
while substr(cstring,dstring) > 0 |
||
sum |
sum++ |
||
cstring = substr(cstring,substr(cstring,dstring)+len(string(sum))) |
cstring = substr(cstring,substr(cstring,dstring)+len(string(sum))) |
||
end |
end |