Extended prime number finder Algorithm


Introduction:

In .net 4.0 microsoft introduced new namespace called System.Numerics with 2 struct's.One of them is a BigInteger-struct which can hold arbitary large numbers. When we use BigInteger.ToString() method it had a precision to 50 digit's.

Example:

I wrote this article to explain how to calculate large prime numbers using this struct.

Code:

Download the attached code. The attached file is a .rar file. Remove .zip from the extension.

Up Next
    Ebook Download
    View all
    Learn
    View all