Pastebin
API
tools
faq
paste
Login
Sign up
SHARE
TWEET
Untitled
a guest
Apr 25th, 2018
75
0
Never
Add comment
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!
text
0.15 KB
| None
|
0
0
raw
download
clone
embed
print
report
numbers = (2..ARGV.first.to_i).to_a
prime = 2
until numbers.empty?
numbers.delete_if { |n| n % prime == 0 }
puts prime = numbers.delete_at(0)
end
Add Comment
Please,
Sign In
to add comment
Public Pastes
🤑 G2A.com Free Gift Card Guide Apr 2024 FIX 🤑
GetText | 1 min ago | 0.39 KB
Untitled
C++ | 46 min ago | 0.40 KB
Elite:Dangerous: Titan-Bomber Script
Python | 52 min ago | 5.78 KB
Kick Up Simulator Codes
JSON | 2 hours ago | 0.11 KB
Untitled
FreeBasic | 3 hours ago | 2.56 KB
idk
Lua | 4 hours ago | 130.01 KB
2024-04-23_stats.json
JSON | 4 hours ago | 4.50 KB
2024-04-23_stats.json
JSON | 4 hours ago | 4.48 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!