Slinging.org Forum
https://slinging.org/forum/YaBB.pl
General >> Other Topics >> Programming and Project Euler
https://slinging.org/forum/YaBB.pl?num=1226513049

Message started by Cliff on Nov 12th, 2008 at 1:04pm

Title: Programming and Project Euler
Post by Cliff on Nov 12th, 2008 at 1:04pm
Over the past month or so, I've been working on Project Euler on and off, to kill some time.  It's basically just a set of math problems that you usually need to write a program to solve (some of them you can do by hand / with a pocket calculator).

http://projecteuler.net/

They vary a lot, the first few are very simple, but they get difficult pretty fast.  I've really picked up a lot of knowledge just working through them.

Anyways, I though it was a pretty neat way to teach yourself a little.  Has anyone else here done any of it?

Also, programming in general:  I know a (very) limited amount of C, but I have been using Python to solve the problems.  I really like Python, it's ridiculously easy to learn / use, everything's so much easier than in other languages.  Anyone who's looking into teaching themselves to program should consider it as a learning language.

Title: Re: Programming and Project Euler
Post by Steven on Nov 12th, 2008 at 5:41pm
:D Batteries included  ;)
P.S.
Just loaded Python CE 2.5 on my AT&T Tilt
And PocketPyGui  a native GUI toolkit for PythonCE
So I can make pretty things.

I may go play in your Euler sandbox after I've
played with python some more
Python_batteries_included.jpg (40 KB | )

Title: Re: Programming and Project Euler
Post by Kevatron on Nov 16th, 2008 at 11:13pm
I'm just starting to learn FORTRAN (barf!) and C, and this is fantastic!! Thanks!

Title: Re: Programming and Project Euler
Post by wanderer on Nov 17th, 2008 at 6:17am

Cliff wrote on Nov 12th, 2008 at 1:04pm:
Over the past month or so, I've been working on Project Euler on and off, to kill some time.  It's basically just a set of math problems that you usually need to write a program to solve (some of them you can do by hand / with a pocket calculator).

http://projecteuler.net/

Also, programming in general:  I know a (very) limited amount of C, but I have been using Python to solve the problems.

That's a nice site. Thanks for mentioning it. :)

Title: Re: Programming and Project Euler
Post by wanderer on Nov 17th, 2008 at 6:23am

Kevatron wrote on Nov 16th, 2008 at 11:13pm:
I'm just starting to learn FORTRAN (barf!) and C, and this is fantastic!! Thanks!


Who the heck uses Fortran any more? I thought that had been excised from Physics practice years ago ;D

Title: Re: Programming and Project Euler
Post by Kevatron on Nov 17th, 2008 at 9:00pm
That's what I said!

Title: Re: Programming and Project Euler
Post by Monster on Nov 21st, 2008 at 7:49pm
I remember using FORTRAN some 17 years ago and thought it was old then.  But last month I found out they still a COBOL system at work.  Somethings can't just die and go away.

Title: Re: Programming and Project Euler
Post by Dr.Q on Nov 22nd, 2008 at 10:56pm
the first thing you will have difficulty in joninig project euler
is decoding the security code so you can join. That will be
the first mathematical challenge wich I still have not passed.

Im serious. Cant read part of that and its letters look like
ancient space invaders letters.

Title: Re: Programming and Project Euler
Post by Cliff on Nov 26th, 2008 at 12:34am
haha yeah, my mother learned FORTRAN back when they still used punchcards.  I read that a large part of the reason it's is still being used is cause firms own a lot of code that's in fortran, so they'd rather just have people modify the existing software than totally re-do it in a new language.  I'll be learning it too next semester  :-/

Dr. Q
I didnt have much of a problem registering- if you want i can set up an account for you with a dummy password, and then you can go and change the password

Title: Re: Programming and Project Euler
Post by wanderer on Nov 26th, 2008 at 8:09am

Cliff wrote on Nov 26th, 2008 at 12:34am:
haha yeah, my mother learned FORTRAN back when they still used punchcards.  I read that a large part of the reason it's is still being used is cause firms own a lot of code that's in fortran, so they'd rather just have people modify the existing software than totally re-do it in a new language.  I'll be learning it too next semester  :-/

You're right about the 'legacy' aspects. There are many millions of lines of well tested Fortran code out there. Frequently the quality is very high. Much of modern science and a great deal else would grind to an immediate halt if it couldn't be run,

Many people moved away from Fortran because a lot of scientific work moved to UNIX machines, where C was available, and the committees and manufacturers kept messing around so much with Fortran that no-one could keep up. :(

Title: Re: Programming and Project Euler
Post by Branmun on Dec 7th, 2008 at 8:34pm
I wonder how hard it would be to beat these in assembly :-?

Title: Re: Programming and Project Euler
Post by Cliff on Dec 9th, 2008 at 5:52pm
They do it!  according to the site statistics, 50 of the 50,000 members use it as their primary language...  so, not many, but they do it.  The people on the forums there love to compare the run times for their solutions to determine who is the alpha male, so the assembler people jump in occasionally to trump everyone.

It's interesting to look at some of the source code people post on the forums there, lots of people also use J, which looks like a lot of emoticons and leetspeak to me.

Slinging.org Forum » Powered by YaBB 2.5.2!
YaBB Forum Software © 2000-2026. All Rights Reserved.