User forums > Help

BigInteger - Dealing with large Integers

(1/1)

stanek:
I am trying to learn programming and find myself writing C++ using code::blocks.  I am trying to tackle Project Euler puzzles to get started and am finding that a lot of the problems are using numerical values outside of even a long long.

I am looking for something to support big integers.  Does anyone have any recommendations?  I have found something called BigInteger but I do not know how to configure it.

Maybe you can tell me how you deal with big integers.

stanek:
The keyword was Big Num.  http://en.wikipedia.org/wiki/Arbitrary-precision_arithmetic has a nice list of available 'addons?'.

I ended up choosing http://en.wikipedia.org/wiki/Class_Library_for_Numbers because it had the most options.

The install instructions were very clear.  As it turns out the only setting I had to change was to point to the proper directory for the .a linker.

Hopefully CLN does what im looking for.

Navigation

[0] Message Index

Go to full version