The BigInteger is a class to use big numbers,
GCD is the greatest common divisor for BigInteger class,
and what I would need is in the 2 'for's to be able to find the first good i value as fast as possible.
Sorry to bother anyone with this simple question but i never learned multithreading.