Sounds like Project Euler.
.NET 4.0 has System.Numerics.BigInteger, or you can get a pretty sweet implementation here:
C # BigInteger Class
Edit: treed: (
I will add - the version in CodeProject has additional functions, such as integer square root, primality test, Lucas sequence generation. Also, you don't have direct buffer access in the .NET implementation, which was annoying for a couple of things I tried.
source share