Pastebin
API
tools
faq
paste
Login
Sign up
SHARE
TWEET
Untitled
a guest
Feb 20th, 2018
98
0
Never
Add comment
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!
Ruby
0.17 KB
| None
|
0
0
raw
download
clone
embed
print
report
require
'prime'
def
factors
(
n
)
f =
[
]
(
1
...
Math
.
sqrt
(
n
)
)
.
each
do
|
x
|
f
<<
x
if
(
n
%
x ==
0
&&
x.
prime
?
)
end
return
f
end
puts
factors
(
600851475143
)
.
last
Add Comment
Please,
Sign In
to add comment
Public Pastes
MAKE $5000 INSTANTLY B
JavaScript | 3 sec ago | 0.08 KB
✅ Account Leaks
JavaScript | 3 sec ago | 0.08 KB
Make $2500 in 15 minutes G
JavaScript | 4 sec ago | 0.08 KB
MAKE $5000 INSTANTLY N
JavaScript | 7 sec ago | 0.08 KB
MAKE $5000 INSTANTLY Z
JavaScript | 13 sec ago | 0.08 KB
✅ MAKE $22OO IN 10 MIN R
JavaScript | 14 sec ago | 0.08 KB
Netflix Premium UHD Hits
JavaScript | 15 sec ago | 0.08 KB
MAKE $5000 INSTANTLY
JavaScript | 19 sec ago | 0.08 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!