Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Geek Culture / You like math? Project Euler

Author
Message
TheComet
17
Years of Service
User Offline
Joined: 18th Oct 2007
Location: I`m under ur bridge eating ur goatz.
Posted: 7th Feb 2012 07:46
I just stumbled upon this this cool website : http://projecteuler.net

They offer a ton of math problems that require good knowledge of maths and programming. For every 25 problems you solve, you level up, and there's some talk of prizes as well (not sure, I just started).

Make sure to check it out if you feel you're not challenged enough at school / work.

TheComet

Pincho Paxton
22
Years of Service
User Offline
Joined: 8th Dec 2002
Location:
Posted: 7th Feb 2012 15:30
I tried to click on the link, but my 11 fingers just aren't very good at using the mouse properly.

puppyofkosh
18
Years of Service
User Offline
Joined: 9th Jan 2007
Location:
Posted: 7th Feb 2012 22:06
I, too, started participating in this at the beginning of the school year after I got linked to it on the devhat IRC. Most of the problems I've encountered involve being solved with dynamic programming.
Phaelax
DBPro Master
22
Years of Service
User Offline
Joined: 16th Apr 2003
Location: Metropia
Posted: 8th Feb 2012 00:32
So far I've solved 16/370 problems, I joined awhile ago.
1-10, 13, 16, 18, 20, 36, 79

"You're not going crazy. You're going sane in a crazy world!" ~Tick
zenassem
22
Years of Service
User Offline
Joined: 10th Mar 2003
Location: Long Island, NY
Posted: 8th Feb 2012 15:50
Similar to Project Euler Spotify Code Quest 2012

(Note: States "Open to US residents only,, yet registration form has a choice under country field for USA and "Other".)

~ZENassem
TheComet
17
Years of Service
User Offline
Joined: 18th Oct 2007
Location: I`m under ur bridge eating ur goatz.
Posted: 8th Feb 2012 16:20 Edited at: 8th Feb 2012 16:20
That's odd... My compiler won't accept this (C++):

__int64 number = 600851475143;

I have to do this:

__int64 number;
number = 6008514;
number = number * 100000;
number = number + 75143;

TheComet

Indicium
16
Years of Service
User Offline
Joined: 26th May 2008
Location:
Posted: 8th Feb 2012 16:25
Quote: "My compiler won't accept this (C++):"


Works on the visual C++ 2010 compiler

TheComet
17
Years of Service
User Offline
Joined: 18th Oct 2007
Location: I`m under ur bridge eating ur goatz.
Posted: 8th Feb 2012 16:43
Works here too with VC++ 2010. I was using MinGW GCC compiler.

TheComet

budokaiman
FPSC Tool Maker
15
Years of Service
User Offline
Joined: 24th Jun 2009
Playing: Hard to get
Posted: 8th Feb 2012 17:01 Edited at: 8th Feb 2012 17:13
Quote: "That's odd... My compiler won't accept this (C++):

__int64 number = 600851475143;

I have to do this:

__int64 number;
number = 6008514;
number = number * 100000;
number = number + 75143;

TheComet"


Works for me with long long.

EDIT: Just tested it with __int64 and it worked fine.


Page.
puppyofkosh
18
Years of Service
User Offline
Joined: 9th Jan 2007
Location:
Posted: 8th Feb 2012 22:47
Quote: "__int64 number = 600851475143;"



You might have to put "LL" after it. That's part of C99 though, so it may not work for all compilers.
RedFlames
17
Years of Service
User Offline
Joined: 25th Aug 2007
Location: Germania
Posted: 8th Feb 2012 23:31
Quote: "You might have to put "LL" after it. That's part of C99 though, so it may not work for all compilers. "

Thats what I found out about java too. Unless there's an 'L' at the end the compiler tries to read literals as integers.

Also I solved the top 2 Problems, was too lazy to find a nice solution for the third
But it looks like a nice prgramming/logical/mathematical practice.

Login to post a reply

Server time is: 2025-05-19 18:03:35
Your offset time is: 2025-05-19 18:03:35