Pop-Up Thingie
Sidebar
Too Lazy BBS
Home
Forum
Files
Chat
Bulletins
Top doors
MOTD
BBS Stats
Radio
AvatarChat
Dark
Register
Log in
Username
Password
Sidebar
Forum
USENET
comp.lang.postscript
Parallel Sieve Of Eratosthenes
From
Lawrence D'Oliveiro
@ldo@nz.invalid to
comp.lang.postscript
on Mon Jun 24 07:33:05 2024
From Newsgroup: comp.lang.postscript
Implemented in GXScript as an ever-lengthening chain of iterators:
/sieve
{
{
/n exch ldef
n =
/subsieve sieve ldef
{
yield
/i exch ldef
i n mod 0 ne {i subsieve next} if
}
loop
}
iter
}
ddef
/n 1 ddef
/subsieve sieve ddef
{
/n n 1 add dstore
n subsieve next ;
}
loop
--- Synchronet 3.21d-Linux NewsLink 1.2
Who's Online
System Info
Sysop:
Amessyroom
Location:
Fayetteville, NC
Users:
63
Nodes:
6 (
0
/
6
)
Uptime:
492946:23:46
Calls:
840
Files:
1,300
D/L today:
5 files
(1,241K bytes)
Messages:
260,694