Archive for May, 2008
OMFG this is hilarious!!!
n = 1000
seive = (1..n).to_a
2.upto(Math.sqrt(n)) { |i| (i*2).step(n,i) { |x| seive[x] = nil } }
p seive.compact
see also
wow looks like this guy has me beat
(2..1000).inject((2..1000).to_a) {|res, i| res.select{|n|n==i||n%i!=0} }
space filling surface
0 Comments Published by stephan May 6th, 2008 in burning man, personal news, photos Space filling surface Originally uploaded by StephanCom.
Cleaning and test
Search
About
You are currently browsing the scattered thoughts weblog archives for May, 2008.
Longer entries are truncated. Click the headline of an entry to read it in its entirety.Twitter Updates
Categories:
Latest
- Two more iPhone apps: Simon Says Fart and Simon Says Party
- My first three iPhone apps: FartMobile, SnoreMobile, BurpMobile
- @AppDuJour: my new µproject
- Roast duck and Duck gravy
- classimy.com
- Rails custom FormBuilder made way, way easy
- Why Proposition 8 is actually sort of OK with me
- Take This Job and Shove It
- Stephan’s invention: white trash risotto
- my father passed away
