Determine if an Integer is a Prime Number (Fast, Efficient algorithm)

Category:
Dates and Math
Type:
Snippets
Difficulty:
Beginning
Author:
Toby Herring

Version Compatibility:

More information:
Efficient algorithm to test for prime numbers. Significantly fewer calculations involved than the typical prime test uses.

Instructions: Copy the declarations and code below and paste directly into your VB project.

Declarations:

Code: