I've had a look around and couldn't find any useful solutions for performing calculations with numbers that are millions of digits long. There's one that links to Stack Overflow but it had been deleted.
I've come up with strategies of handling numbers 522 digits long but it is fiddly and I have to find a better way to do calculations when I start handling numbers which are 8 million digits long.
I'm just looking for a way to handle these numbers in .NET 4.5.