Prime Generator Search
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.




  • GUI Application (Was removed)


  • Multithreaded - Specify in my.prefs
  • Link with DB for users to help search


  • JavaPGS
  • NodeJS
  • GUI Application (Also going to be implemented)
  • OpenCL - May add back

What is this?

This is a project that searches for functions that are prime for the first few values of input. It is a Prime Generator Search. It looks through polynomials, and reports it's findings to the server.

Why do this?

Primes have both practical and novel purposes. Primes are in all forms of cryptography, and are the building blocks of arithmetic. Finding the density, probability, and other properties of prime generating polynomials can help us now, and in the future.

There has been a small amount of modernized research on prime generating polynomials, and I believe there is a gap of where we are and where we should be. PrimeGrid ( is one example, and they have found a linear function that is prime for x = [0, 25]. We are looking for polynomials (especially quadratics) that have the same property

Want to help out?

We have a website ( where you can create an account, view records, and manage your account.

To download the project, please check out (

If you would like to help develop the project, you can reach me at


For a more in-detail explanation, see our wiki (, but here's a short explanation:

Primes are numbers that can't be made from multiplying two other integers together. The first few primes are 2, 3, 5, 7, 11, 13. A few example functions that return primes for the first few values are:

2x + 3 from x = [0 to 2]

x^2 + x + 41 from x = [0 to 39]

That last one is prime for 40 consecutive values

This program looks for larger and longer examples of this, and does it over the internet over multiple computers.


Releases (Default)

Sign Up for an account

To download an executable, check out the Releases.

Unzip the folder, and edit my.prefs and enter in your email and password.

You can also change threads to whatever value you'd like.

Check out the README.txt file for more info.

The next part may change based on what platform you use.


Coming soon

Mac & Linux

Double click

Run a shell in any OS, and run python src/ -h with some flags found on the (wiki)[].

Development Build

To use development build, you will need cc and python

For the default install script, run

make setup

To run the program:

python src/ -h

Or, if you would like to run a version that reports the the server,

You need to create an account at (

Use your text editor to open ./my.prefs, and change the email and password


make install

Now, you can run without --offline:

python src/ -p my.prefs


Please view the $wiki for info on OpenCL.

Currently not implemented

More Info

More info can be found on our wiki (

The thread on mersenneforums (

Website: (

Online Client: (

Account Manager: (