Project Euler

Talk about computers, hardware, applications, and consumer electronics.
User avatar
Global Mod
Global Mod
Posts: 1416
Joined: 2008.09.26 (05:35)
NUMA Profile: http://nmaps.net/user/scythe33
MBTI Type: ENTP
Location: 09 F9 11 02 9D 74 E3 5B D8 41 56 C5 63 56 88 C0

Postby scythe » 2009.05.26 (07:28)

http://projecteuler.net/
Anyone else here do these? I've tried a few, mostly the ones I think I can implement quickly. Here's (spoilers!) my take on problem 72, in lua.
As soon as we wish to be happier, we are no longer happy.

User avatar
Diagnosis Mohawk: Bahrain Cock Theory
Posts: 1405
Joined: 2008.09.23 (13:25)
NUMA Profile: http://nmaps.net/user/spawn_of_yanni
MBTI Type: ENFJ
Location: Pittsburgh

Postby Spawn of Yanni » 2009.05.26 (09:24)

I've always wanted to try learning programming so I could take a shot at this, because it sounds mad interesting.
Image
feline disrespect from behind

User avatar
Retrofuturist
Posts: 3131
Joined: 2008.09.19 (06:55)
MBTI Type: ENTP
Location: California, USA
Contact:

Postby t̷s͢uk̕a͡t͜ư » 2009.05.26 (16:12)

Goddamnit, scythe. Now I have to do all of these. Thanks a friggin' ton. Ugh.

Meanwhile, my solution (in Python) for #72 before looking at yours:
http://pastebin.ca/1435100
[spoiler="you know i always joked that it would be scary as hell to run into DMX in a dark ally, but secretly when i say 'DMX' i really mean 'Tsukatu'." -kai]"... and when i say 'scary as hell' i really mean 'tight pink shirt'." -kai[/spoiler][/i]
spoiler

Image


User avatar
Global Mod
Global Mod
Posts: 1416
Joined: 2008.09.26 (05:35)
NUMA Profile: http://nmaps.net/user/scythe33
MBTI Type: ENTP
Location: 09 F9 11 02 9D 74 E3 5B D8 41 56 C5 63 56 88 C0

Postby scythe » 2009.05.26 (21:31)

Tsukatu wrote:Goddamnit, scythe. Now I have to do all of these. Thanks a friggin' ton. Ugh.
On the plus side, it's a great way to learn the math library.
Meanwhile, my solution (in Python) for #72 before looking at yours:
http://pastebin.ca/1435100
Do you need to sort the factors? It seems like they'd be in order simply because of the way you sorted them.
As soon as we wish to be happier, we are no longer happy.

User avatar
Retrofuturist
Posts: 3131
Joined: 2008.09.19 (06:55)
MBTI Type: ENTP
Location: California, USA
Contact:

Postby t̷s͢uk̕a͡t͜ư » 2009.05.26 (22:06)

scythe wrote:
Meanwhile, my solution (in Python) for #72 before looking at yours:
http://pastebin.ca/1435100
Do you need to sort the factors? It seems like they'd be in order simply because of the way you sorted them.
Oh. Yeah, probably not. Just making sure it looked clean during debugging.
I mean, I also didn't need all the wacky length checking for num and den because I knew I'd be feeding it numbers between zero and one only, but meh.
[spoiler="you know i always joked that it would be scary as hell to run into DMX in a dark ally, but secretly when i say 'DMX' i really mean 'Tsukatu'." -kai]"... and when i say 'scary as hell' i really mean 'tight pink shirt'." -kai[/spoiler][/i]
spoiler

Image


User avatar
Bayking
Posts: 315
Joined: 2008.10.01 (20:26)
NUMA Profile: http://nmaps.net/user/exuberance
Location: Guelph, Ontario, Canada

Postby Exüberance » 2009.05.27 (00:35)

Doing a bunch of these now using mostly C, but using Scheme where I use integers bigger than 2^31 -1. I suppose I could always use my bigint functions, but meh. With scheme I can just type it in and go. Don't have to save, compile, scream in terror at segfault, fix, recompile, and run. Might end up trying to figure out how to make Maple do something usefull for some brute-force algorithms with really big numbers.

Yeah, I just got nerd sniped. <_<
ExüberNewsFeed: Exuberance is mostly <AFF> (Away From Forums) for a while, though I may still participate in epic contests/threads. When I return, I shall bring several comic updates (enough to finish season 1) and hopefully 1 or 2 games- at least one of which is N-related
Comic Activity-O-Meter: (how often I'm updating my comic)
(Click here to see what each level and half-level means in terms of updates per time period)

NOTE: If I just add a bunch of comics in one day, but plan on going back to normal after that, I probably won't update the status.
+ Dead: Canceled. Done. Maybe you'll get a random comic like once a year, but it's pretty much done.
- Zombie (Dead/Comatose): The comic is probably done regular updates forever, but I'll probably still add something once in a blue moon. It's still POSSIBLE, that I'll raise the status up, but not very likely. Maybe I'll have a comicplosion for like a week, then go back to being dead
+ Comatose: Complete stand-by. No (or very few) updates for some amount of time, but the comic's far from being over
- <AFK> (Comatose/Loitering): Stand-by, but you might possibly count on a few updates once and a while. Again, this is temporary
+ Loitering: Like comatose, but for short amount of times.
- Turtling (Loitering/Semi-Active): Really slooooww updates
+ Semi-Active: One every 2 weeks...ish?
- Quasi-Active (Semi-Active/Active): Averaging about 2 comics every 3 weeks
+ Active: Loosely defined status, but about a weekly update
- Over-Active (Active/Power-leveling): About 2 comics a week
+ Power-leveling: About 3 comics a week. Possible a schedule, possibly not
- Über-Epic (Power-leveling/COMICPLOSION!!): In some cases, this may actually be mean updates more frequently than COMICPLOSION!!, but I'm defining this level as a non-organized comic rush, kind of like a few days after my comic started
+ COMICPLOSION!!: Daily updates for a minimum of 5 days (since the daily updates started. It remains at this status until the 5, 7, whatever days are done)

Image
"Science without religion is lame. Religion without science is blind." ~Albert Einstein
My N+ Vector Sprite Sheet ::: My Caption Contest ::: My Comic :::Puzzles of the Exuberant ::: DEFEND YOUR NINJA: THE FLASH GAME (Release Date TBA)
Image
Exüberance on WoW
Image
Maps in the Fernat Epic (so far): (meh, let's put this in a spoiler too. My sig's gettin too big. I'm such a packrat :p)

Nmaps.netNmaps.net



Who is online

Users browsing this forum: No registered users and 1 guest