Log In · Register

 
 
Reply to this topicStart new topic
Project Euler
mipadi
post Apr 16 2008, 12:16 PM
Post #1


Senior Member
******

Group: Administrator
Posts: 2,648
Joined: Apr 2008
Member No: 639,265



Hey, does anyone here participate in Project Euler?
 
illriginal
post Apr 16 2008, 12:31 PM
Post #2


Senior Member
*******

Group: Official Member
Posts: 6,349
Joined: Aug 2006
Member No: 455,274



From my understanding, there's Linux/Unix users who are currently helpin the process.
 
mipadi
post Apr 16 2008, 05:49 PM
Post #3


Senior Member
******

Group: Administrator
Posts: 2,648
Joined: Apr 2008
Member No: 639,265



Uh, what? Helping what process?
 
illriginal
post Apr 16 2008, 05:51 PM
Post #4


Senior Member
*******

Group: Official Member
Posts: 6,349
Joined: Aug 2006
Member No: 455,274



QUOTE(mipadi @ Apr 16 2008, 06:49 PM) *
Uh, what? Helping what process?

Of discovering new mathematical concepts. As there's nearly infinite of them and we only know so many different concepts. There's an IRC channel that's dedicated to Project Euler.

This will help us with our future technologies and understanding of many different things that we have yet to understand.

Mathematics > all
by default
 
mipadi
post Apr 16 2008, 06:06 PM
Post #5


Senior Member
******

Group: Administrator
Posts: 2,648
Joined: Apr 2008
Member No: 639,265



Project Euler's not about discovering new mathematical concepts per se, nor is it limited to Unix/Linux users.
 
illriginal
post Apr 16 2008, 06:15 PM
Post #6


Senior Member
*******

Group: Official Member
Posts: 6,349
Joined: Aug 2006
Member No: 455,274



QUOTE(mipadi @ Apr 16 2008, 07:06 PM) *
Project Euler's not about discovering new mathematical concepts per se, nor is it limited to Unix/Linux users.

I never said it was limited to Unix/Linux users. And I'm goin by the administrator's view in the IRC channel. The whole point, generally speakin is to find new concepts within concepts. But whatever... I don't know much about it other than the generality of it.
 
mipadi
post Mar 20 2009, 11:07 AM
Post #7


Senior Member
******

Group: Administrator
Posts: 2,648
Joined: Apr 2008
Member No: 639,265



I've recently started working on some of these problems again. Anyone doing this?
 
Uronacid
post Mar 20 2009, 12:21 PM
Post #8


Senior Member
******

Group: Official Member
Posts: 1,574
Joined: Aug 2007
Member No: 555,438



I haven't tried it, however it looks interesting. I might give it a shot. What do you use to do it? Just any programming language?
 
mipadi
post Mar 20 2009, 12:53 PM
Post #9


Senior Member
******

Group: Administrator
Posts: 2,648
Joined: Apr 2008
Member No: 639,265



QUOTE(Uronacid @ Mar 20 2009, 01:21 PM) *
I haven't tried it, however it looks interesting. I might give it a shot. What do you use to do it? Just any programming language?

You can use any programming language you want; hell, some people use Excel spreadsheets, or solve the problems using pencil and paper. To get an answer "right", you just have to submit an answer to the problem. (They're all math-focused, so the answers are usually just a number.)

I personally use Python, Haskell, and Erlang, in that order; Python because I know it best, Haskell because many of the problems can be easily solved using language features found in Haskell, and Erlang because it's almost like Haskell but easier to use.
 
Uronacid
post Mar 20 2009, 01:40 PM
Post #10


Senior Member
******

Group: Official Member
Posts: 1,574
Joined: Aug 2007
Member No: 555,438



QUOTE(mipadi @ Mar 20 2009, 01:53 PM) *
You can use any programming language you want; hell, some people use Excel spreadsheets, or solve the problems using pencil and paper. To get an answer "right", you just have to submit an answer to the problem. (They're all math-focused, so the answers are usually just a number.)

I personally use Python, Haskell, and Erlang, in that order; Python because I know it best, Haskell because many of the problems can be easily solved using language features found in Haskell, and Erlang because it's almost like Haskell but easier to use.


I guess I could take a crack at it. Some of these problems are really odd, and I don't even understand what they're asking me to do. Others are extremely easy.

I'd probably end up using vbs, javascript, java, or as3 to solve them. Python is probably one of the best languages you can use. From what I hear it's extremely fast. *hopes built-in functions will help him as well*
 
mipadi
post Jul 16 2009, 12:19 PM
Post #11


Senior Member
******

Group: Administrator
Posts: 2,648
Joined: Apr 2008
Member No: 639,265



Bump. I suppose Uronacid and I are the only programmers on the forums, but just in case: has anyone else looked into this? I've found both my math and Haskell skills to be lacking, so I've developed a renewed interest in Project Euler so I can practice.
 
heyo-captain-jac...
post Jul 16 2009, 03:11 PM
Post #12


/人◕‿‿◕人\
*******

Group: Official Member
Posts: 8,283
Joined: Dec 2007
Member No: 602,927



Looks interesting. I might try this out.
 
mipadi
post Jul 20 2009, 07:58 AM
Post #13


Senior Member
******

Group: Administrator
Posts: 2,648
Joined: Apr 2008
Member No: 639,265



Spoiler Alert

I'm particularly proud of this piece of code that I used to solve Problem 53:

CODE
-- The standard combinatoric "n choose r" equation
nCr n r = (fac n) `div` ((fac r) * (fac (n - r)))

-- The standard factorial equation
fac n | n == 0    = 1
      | otherwise = n * fac (n - 1)

-- A function for counting the occurrences of values >1,000,000 in a list
-- that is appropriate for foldl
countMillion n x | x > 1000000 = n + 1
                 | otherwise   = n

-- Performs the calculation
doIt = foldl countMillion 0 xs
  where
    xs = [nCr n r | n <- [23..100], r <- [1..n]]
 

Reply to this topicStart new topic
2 User(s) are reading this topic (2 Guests and 0 Anonymous Users)
0 Members: