Very, very large numbers in vb.net

How can one deal with incredibly long (large) numbers in vb.net?

I am working on problem 25 in Project Euler, and my program cannot handle these calculations.

Is there a data type that can handle thousands of digits?

+3
source share
3 answers
+4
source

The challenge is to get you to write code to handle large numbers. Using the library is definitely not the case. You know how to solve the problem with a (large) piece of paper and a pencil, right?

, , , ( ). , , , . , Count 1000.

+2

One solution is to use the BigInteger function from the Microsoft Visual J # library (when your version of the Framework is <4). Just add the vjslib link to your project.

Or use String , but it can be slow.

Frome here: calculating a large number

0
source

Source: https://habr.com/ru/post/1777223/


All Articles