What is the Next Prime Number?

This no longer works because I wrote it 20 years ago and have not maintained it. Source code is at https://www.rsok.com/~jrm/source/java/

Enter a positive integer in the form below to find the next larger prime number. This is a JAVA program and requires a new enough JAVA in your web browser to include the java.math.BigInteger package.

The integer



John Moyer's home page
send email to John Moyer.

Copyright © 2001, John Moyer, All rights reserved.