BBS: Inland Empire Archive Date: 12-08-92 (15:36) Number: 379 From: VICTOR YIU Refer#: NONE To: MICHEL BERTLER Recvd: NO Subj: Re: Prime numbers gen. Conf: (2) Quik_Bas

-=> Quoting Eric B. Ford to Michel Bertler <=- To redirect: EBF> PRIME >Primes.txt ________Clip here_______' the slightly modified version of' Eric Ford's prime # generatorDEFINTA-Z:CLSINPUT"Highest #"; LastDIMPrime(Last + 1)ASINTEGERH = Last \ 2 T! =TIMERFORI = 3TOHSTEP2 J = 2WHILEJ * I <= Last Prime(J * I) = 1 J = J + 1 WENDNEXTIFORJ = 4TOLastSTEP4 Prime(J) = 1NEXTJ T! =TIMER- T!FORI = 3TOLastSTEP2IFPrime(I) = 0THENNEXTI

Echo Basic Postings

**Books at Amazon:**

Back to BASIC: The History, Corruption, and Future of the Language

Hackers: Heroes of the Computer Revolution (including Tiny BASIC)

Go to: The Story of the Math Majors, Bridge Players, Engineers, Chess Wizards, Scientists and Iconoclasts who were the Hero Programmers of the Software Revolution

The Advent of the Algorithm: The Idea that Rules the World

Moths in the Machine: The Power and Perils of Programming

Mastering Visual Basic .NET