Pastebin
API
tools
faq
paste
Login
Sign up
SHARE
TWEET
Untitled
a guest
May 24th, 2018
89
0
Never
Add comment
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!
text
0.18 KB
| None
|
0
0
raw
download
clone
embed
print
report
-module(sieve).
-export([sieve/1]).
sieve(N) -> sieve(lists:seq(2, N), []).
sieve([], L) -> lists:reverse(L);
sieve([Prime|T], L) -> sieve([X || X <- T, X rem Prime /= 0], [Prime|L]).
Add Comment
Please,
Sign In
to add comment
Public Pastes
🤑 G2A.com Free Gift Card Guide May 2024 FIX 🤑
GetText | 3 min ago | 0.39 KB
Stay protected, Join the tour today!
JavaScript | 48 min ago | 0.13 KB
snowybot completed robo manual 10fold upda...
JavaScript | 1 hour ago | 1.87 KB
clear_shader_cache
Batch | 1 hour ago | 3.21 KB
2024-05-14_stats.json
JSON | 1 hour ago | 4.41 KB
2024-05-14_stats.json
JSON | 1 hour ago | 4.40 KB
2024-05-14_stats.json
JSON | 1 hour ago | 4.37 KB
snowybot
JavaScript | 2 hours ago | 1.86 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!