Primes

calculates the prime numbers 1..N, tells you if N is prime etc.

calculates the prime numbers 1..N, tells you if N is prime etc. Prints tables of primes. Computes the prime just below or above N. It is useful in computing optimal Hashtable sizes. Java source included.

Changes: mostly cosmetic, more documentation, tidy source.

Minimum requirements: Java 1.7+

Operating system: Java,Linux,Mac OS X,Unix,Win2000,Win7 x32,Win7 x64,WinServer,WinVista,WinVista x64,WinXP

Program URL: http://mindprod.com/products2.html#PRIMES

Primes screenshot

...

Special permissions

You may include the Primes on any CD compilation.

EULA

This program is for non-military use only. For details on what that licencing restriction means and why I restricted this software that way, see http://mindprod.com/contact/nonmil.html If you incorporate any of my code in your programs, they too must be marked for non-military use only. However it is not your responsibility to enforce that restriction.

Read more