Psuedo-Random 8-Digit Prime Number Generator

Category:
Dates and Math
Type:
Snippets
Difficulty:
Beginning
Author:
Anonymous

Version Compatibility: Visual Basic 6

More information:
Algorithn to generate an eight-digit prime number, but it comes in handy in encryption applications.

This is a speedy algorithm, thanks to James Barbetti who took the originally slow algorithm and improved it considerably.

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

Declarations:

Code: