Programming language for fast calculations with big integers
Posted
by sub
on Stack Overflow
See other posts from Stack Overflow
or by sub
Published on 2010-04-20T16:59:46Z
Indexed on
2010/04/20
17:03 UTC
Read the original article
Hit count: 249
I'm doing Project Euler problems at the moment and I can solve most of them using my own programming language which uses direct C++ integers (so they are bound to 2^32 on my machine).
However, at times there are problems which require me to work with very high numbers, I can't do that with native integers. So I implemented a BigInt library in my language which unfortunately gets extremely slow at times.
- Is there a programming language suitable for very efficient handling of big numbers? I mean that I want to do the things I could do in other programming languages with it (variables, loops, etc.), but in a faster way.
If you have got tips for workarounds of the 2^32 limit in my language/C++/other languages, please tell me too!
© Stack Overflow or respective owner