|
Qbasic Program
Here is a really simple Qbasic program that I created that will test the primality of a number, tell you if it's prime and write all the prime numbers to a file in this form; prime #, # of prime #, distance to last prime #. I really don't recommend Qbasic for anyone wanting to deal with even slightly large numbers, I would instead recommend
Ubasic. This qbasic program of mine can create a list of the primes less than 100,000 in an average of 33.321 seconds running on a p166 with 32 megs of RAM.