Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

Project Euler

Name: Anonymous 2010-09-24 23:18

Hey /prog/, I know I'm a little late to the party, but I was wondering how many problems you've solved thus far.
Other discussion regarding Project Euler is also welcome!

Name: Anonymous 2010-09-25 16:12

>>2,12
Problem 1
If we list all the natural numbers below 10 that are multiples of 3 or 5, we get 3, 5, 6 and 9. The sum of these multiples is 23.

Find the sum of all the multiples of 3 or 5 below 1000.

In[1]:= 3 Sum[d, {d, 1, 333}] + 5 Sum[i, {i, 1, 200}] - 15 Sum[x, {x, 1, 66}]
Out[1]= 234168

``faggot'' way

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List