Project Euler

Posted by s on May 25, 2008, 2:24 a.m.

I've now completed 10 problems. I really liked the 20x20 grid path

Main thing I'm not doing is elegant solutions. Brute force all the way on run once software

What am I using? Python

What am I finding? That Python's prompt is KILLER

Best part is I found out some methods on getting arrays set(I used range() extensively to setup the 20x20 grid, then when I was looking over other solutions I noticed someone used [0]*20. So ya, a neat syntax part there once you know it)

jarjar has some pretty awesome work in there with Befunge. Few people use ASM for some reason and the APL group never fail to show off how short their codes are

I was originally going to use Lisp. But then it hit me: Lisp sucks

I'd also like to make a wish: That IDLE would allow half length complete tabs

And to continue the use of colons, I will note an odd behavior of the serprex: In GML, temps are called v,v2,v3; In Python, temps are called x,y,z or a,b,c

Where I came up with simplest solution: Even a lot of the Python people shuffled these. I saw someone do the good old (+ NUM) in Scheme, and maybe it is my experience with Lisp that made me aware of eval(). But either way, I just did eval(NUM.replace("\n","+"))

Annoying redundancy: quit() and exit() are synonymous functions. Synonymous functions should be dealt with in the next century, they're that bad

Pitiful: #14 has integer modulo of 2. When viewing solutions, everyone was using %2. Are these fools incapable of knowing about &1?(I did well with #14, made a memoizing function so that iterating through 1000000 numbers happened hundreds of times faster. Though I didn't have the insight of one person who noticed that the answer would be an odd number above 500001)

Lojban: #17 would be much simpler in Lojban

Comments

PY 16 years, 7 months ago

Killer?

Killer?!

That word could have so many meanings here I'm confused

s 16 years, 7 months ago

Python's prompt is so awesome that it will kill you, you're mother, you're mother's mother and even you mother's mother's hamster. Ya, killer

PY 16 years, 7 months ago

Oh, OK, thanks for clearing that up.