In
C# the
long
datatype is a signed integer with 64 bit size, then it could hold up to 2^63-1.
If you use
unsigned long
you will be able to hold numbers up to 2^64-1.
To hold numbers greater than these, you should use some specific class or library. You can start reading this article:
C# BigInteger Class[
^]