• OK, it's on.
  • Please note that many, many Email Addresses used for spam, are not accepted at registration. Select a respectable Free email.
  • Done now. Domine miserere nobis.

Project Euler

Emil

Absent-minded Professor
Local time
Today 9:52 PM
Joined
Feb 26, 2010
Messages
8
-->
Location
Milky Way
Project Euler:

Project Euler is a series of challenging mathematical/computer programming problems that will require more than just mathematical insights to solve. Although mathematics will help you arrive at elegant and efficient methods, the use of a computer and programming skills will be required to solve most problems.

http://projecteuler.net/
 

fullerene

Prolific Member
Local time
Today 12:22 PM
Joined
Jul 16, 2008
Messages
2,156
-->
I looove that site. Sadly I don't have time anymore, but I did quite a few of them when I was bored last year. Much fun, if you like math and know a programming language.
 

Emil

Absent-minded Professor
Local time
Today 9:52 PM
Joined
Feb 26, 2010
Messages
8
-->
Location
Milky Way
I was introduced to it by a friend a few months ago, and I solved a few problems in JAVA. Then, my interest took a turn into something else. Recently, I took it again and solved a few more. It's fun to think about those problems and find out efficient algorithms to solve them. :)
 

fullerene

Prolific Member
Local time
Today 12:22 PM
Joined
Jul 16, 2008
Messages
2,156
-->
It's a good excuse to learn new programming languages in a fun way, too. I knew Java when I found the site, so I solved many of them in that, but some of the people from this forum coaxed me into learning python, because the syntax was much simpler and it's an inherently faster program. I don't think I would have done it if I had no use for it, but I did another 20 or so of them in Python, and now know the syntax and list features and things quite well.
 

Latro

Well-Known Member
Local time
Today 12:22 PM
Joined
Apr 18, 2009
Messages
755
-->
Python is NOT faster than Java, except maybe for I/O, since Java is terrible at I/O.
 

fullerene

Prolific Member
Local time
Today 12:22 PM
Joined
Jul 16, 2008
Messages
2,156
-->
yeah, I take that back. I tested a general number-crunching program, the same in both java and python, and got back these times.

For python

real 2m50.478s
user 2m34.410s
sys 0m0.280s

for Java

real 0m7.767s
user 0m7.366s
sys 0m1.407s


I'm legitimately surprised.
 

boradicus

And as he gazed her eyes were filled with the dark
Local time
Today 10:22 AM
Joined
Feb 24, 2010
Messages
165
-->
yeah, I take that back. I tested a general number-crunching program, the same in both java and python, and got back these times.

For python

real 2m50.478s
user 2m34.410s
sys 0m0.280s

for Java

real 0m7.767s
user 0m7.366s
sys 0m1.407s


I'm legitimately surprised.

Hey - what is the difference between the real, user, and sys times? I have never seen these benchmarks.. (then again I am not much of a Java guy...)
 

Latro

Well-Known Member
Local time
Today 12:22 PM
Joined
Apr 18, 2009
Messages
755
-->
Hey - what is the difference between the real, user, and sys times? I have never seen these benchmarks.. (then again I am not much of a Java guy...)
That's just what linux outputs when you ask it how long a given operation takes. The first two figures are about the only relevant ones. I don't know the exact difference, but they're usually so close that it doesn't really matter.
 
Top Bottom