I’m trying to write an algorithm for a number theory/computer science merged class that can factor large numbers in better than exponential time. I am using the g++ compiler on a 64 bit machine but when I chain together long it will only allow me to do up to 2 longs. Is there any way to tell it to use an arbitrary amount of space for a variable?
I’m trying to write an algorithm for a number theory/computer science merged class that
Share
You’ll need a library. A good one is http://gmplib.org/