This isn't a homework problem, but something I was kicking around. Thus far it has worked for the first 20 primes I could calculate in my head. Does anyone know why this shouldn't work, or an example of it not working for the a specific prime number?(adsbygoogle = window.adsbygoogle || []).push({});

The idea is that all prime numbers can be written in the form of:

{(a+1)n} +a, where a is any number between zero and infinity, and n is also any value of your choice.

Thus examples are: 2n+1, 3n+2, 4n+3....

Love to hear feedback.

**Physics Forums - The Fusion of Science and Community**

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

# Equation for Finding Primes?

Loading...

Similar Threads - Equation Finding Primes | Date |
---|---|

A How can I find the collision time of 2 ellipsoids that rotate | May 22, 2017 |

I Using determinant to find constraints on equation | Jan 15, 2017 |

I Use Lorentz Force to Find Magnetic Field Components | Aug 8, 2016 |

Using linear algebra to find a number of independent equations | Oct 1, 2013 |

Finding smallest solution to modular equations | Feb 22, 2013 |

**Physics Forums - The Fusion of Science and Community**