Page 1 of 1 [ 6 posts ] 

morslilleole
Veteran
Veteran

User avatar

Joined: 17 Dec 2011
Age: 35
Gender: Male
Posts: 511
Location: Norway

18 Apr 2014, 4:46 pm

Anyone here solve Project Euler problems? I find them very fun. I recently implemented a BigInt class in C++ which can handle numbers of any size. Using it, I was able to calculate 100! ( factorial ) which has something like 150 digits. And another one made me look into Pascal triangle, which is a very interesting mathematic structure.

Anyone else has solve Project Euler problems?


_________________
Want to learn to make games? http://headerphile.com/


jrjones9933
Veteran
Veteran

User avatar

Joined: 13 May 2011
Age: 55
Gender: Male
Posts: 13,144
Location: The end of the northwest passage

18 Apr 2014, 7:23 pm

It sounds interesting, and I've bookmarked it for later. I don't know how long it will be until I have time to learn programming, but I definitely want to do that at some point. I just have a lot to do to complete my current educational project over the next three years (math and finance).



ruveyn
Veteran
Veteran

User avatar

Joined: 21 Sep 2008
Age: 87
Gender: Male
Posts: 31,502
Location: New Jersey

19 Apr 2014, 8:33 am

morslilleole wrote:
Anyone here solve Project Euler problems? I find them very fun. I recently implemented a BigInt class in C++ which can handle numbers of any size. Using it, I was able to calculate 100! ( factorial ) which has something like 150 digits. And another one made me look into Pascal triangle, which is a very interesting mathematic structure.

Anyone else has solve Project Euler problems?


How about numbers of 10^100 digits?

ruveyn



morslilleole
Veteran
Veteran

User avatar

Joined: 17 Dec 2011
Age: 35
Gender: Male
Posts: 511
Location: Norway

19 Apr 2014, 8:53 am

ruveyn wrote:
morslilleole wrote:
Anyone here solve Project Euler problems? I find them very fun. I recently implemented a BigInt class in C++ which can handle numbers of any size. Using it, I was able to calculate 100! ( factorial ) which has something like 150 digits. And another one made me look into Pascal triangle, which is a very interesting mathematic structure.

Anyone else has solve Project Euler problems?


How about numbers of 10^100 digits?
ruveyn


10^100?^100? A googleplex? I don't know of any ways to do that. Is it even possible? It's a whole lot of digits...


_________________
Want to learn to make games? http://headerphile.com/


eric76
Veteran
Veteran

User avatar

Joined: 31 Aug 2012
Gender: Male
Posts: 10,660
Location: In the heart of the dust bowl

20 Apr 2014, 10:12 pm

In theory, Lisp is supposed to be able to handle any number of digits.



foxfield
Toucan
Toucan

User avatar

Joined: 10 Sep 2011
Age: 36
Gender: Female
Posts: 276
Location: UK

21 Apr 2014, 3:59 am

I've done a few of them in PHP. I enjoyed finding the 10001st prime number in particular