Pastebin
API
tools
faq
paste
Login
Sign up
SHARE
TWEET
Untitled
a guest
Feb 26th, 2012
38
0
Never
Add comment
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!
text
0.17 KB
| None
|
0
0
raw
download
clone
embed
print
report
require './integer'
require 'prime'
limit = ARGV.first.to_i
method = ARGV.last.to_sym
sum = (2...limit).select(&method).inject :+
puts "sum(primes < #{limit}) = #{sum}"
Add Comment
Please,
Sign In
to add comment
Public Pastes
🤑 G2A.com Free Gift Card Guide Apr 2024 FIX 🤑
GetText | 16 sec ago | 0.38 KB
Untitled
C++ | 1 min ago | 2.06 KB
Untitled
C# | 5 min ago | 6.01 KB
sgjourney Stargate Type test
Lua | 9 min ago | 0.69 KB
Mad
PHP | 25 min ago | 0.01 KB
link input and label
HTML 5 | 27 min ago | 0.21 KB
python
Python | 30 min ago | 20.39 KB
🤑 G2A.com Free Gift Card Guide Apr 2024 FIX 🤑
GetText | 31 min ago | 0.39 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!