My profile: http://projecteuler.net/profile/geeklinda.png I wish it said which specific problems I've solved...
- http://pastie.org/1273530 An alternate and very elegant solution from rancorbeast ((1..(1000 - 1)).reject { |i| i % 5 != 0 && i % 3 != 0 }).inject(0) {|a, b| a + b}
- http://pastie.org/1273527
- http://pastie.org/1273740
- http://pastie.org/1285750
- http://pastie.org/1290420 Code blatantly stolen from 17 Sep 2005 03:20 am post by Olath at http://projecteuler.net/index.php?section=forum&id=5 (can't access if you haven't already solved the problem) ... yes there is a discrepancy here. :)
- http://pastie.org/1285746
- http://pastie.org/1293957 (stolen from forums after getting answer)
- http://pastie.org/1285739
- http://pastie.org/1293953 (All mine. I'm proud of it. It runs pretty quickly. finding an answer took me several tries for some reason.)
rancorbeast beat me by miles with the oneliner below.
(1..500).each {|i| (i..500).each {|j| if i + j + Math.sqrt(i ** 2 + j ** 2) == 1000; print i * j * Math.sqrt(i ** 2 + j ** 2); end } } - solved in python.
Euler 11..n will be in a new post.