Pastebin
API
tools
faq
paste
Login
Sign up
SHARE
TWEET
Untitled
a guest
Apr 22nd, 2018
103
0
Never
Add comment
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!
text
0.19 KB
| None
|
0
0
raw
download
clone
embed
print
report
sum = 0
10.upto(10**100) do |i|
rotated = (i.to_s[i.to_s.length-1,1] + i.to_s[0..i.to_s.length-2]).to_i
sum += i if(rotated % i == 0)
end
puts sum
puts sum.to_s[sum.to_s.length-6, 5]
Add Comment
Please,
Sign In
to add comment
Public Pastes
🤑 G2A.com Free Gift Card Guide Apr 2024 FIX 🤑
GetText | 16 min ago | 0.38 KB
🤑 G2A.com Free Gift Card Guide Apr 2024 FIX 🤑
GetText | 19 min ago | 0.39 KB
Untitled
XML | 21 min ago | 5.14 KB
gpt : csv elo check v001
JavaScript | 37 min ago | 1.96 KB
Er bilen sat til ladning?
YAML | 42 min ago | 1.83 KB
Python: Convert docx to PDF
Python | 47 min ago | 0.82 KB
Untitled
Python | 58 min ago | 1.27 KB
tlco-alt-method.lua
Lua | 1 hour ago | 0.69 KB
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the
Cookies Policy
.
OK, I Understand
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!