![]() |
![]() |
#1 |
Jan 2022
228 Posts |
![]()
Hello everyone,
I found an interesting formula in a book. It is the formula n^2-9n+61. It produces a lot of prime numbers. Currently i am checking range 0k-100k Found a lot of primes! Hope to hear more about this. Best Regards. |
![]() |
![]() |
![]() |
#2 |
Romulan Interpreter
"name field"
Jun 2011
Thailand
3·23·149 Posts |
![]()
Please post here the largest prime you found.
Only one, please. Chose the largest, and tell us how you found it. |
![]() |
![]() |
![]() |
#3 |
"Serge"
Mar 2008
Phi(4,2^7658614+1)/2
3·7·479 Posts |
![]() |
![]() |
![]() |
![]() |
#4 |
Jan 2022
2·32 Posts |
![]()
This is the largest prime number i found so far: (2^27450)^2-(9*(2^27450))+61
Currently i am checking k until 30k. I found the prime with openPFGW. Best Regards. |
![]() |
![]() |
![]() |
#5 |
Jan 2022
1810 Posts |
![]()
You are right, it is not a formula but a sequence.
Best Regards. |
![]() |
![]() |
![]() |
#6 |
Feb 2017
Nowhere
141258 Posts |
![]()
It's certainly not new.
n^2 - 9*n + 61 = (n-4)^2 - (n-4) + 41 is merely a shift of Euler's "prime-generating polynomial" n^2 - n + 41. |
![]() |
![]() |
![]() |
#7 | |
Mar 2016
1101001002 Posts |
![]() Quote:
For this special case I recommend a sieve procedure similar like the sieve of Eratosthenes: http://devalco.de/basic_polynomials/...?a=1&b=-1&c=41 For a more general point of view take: http://devalco.de/poly_sec.php If you want to speed up the finding for primes for f(n)=n²-n+41 I suggest a quadratic presieve and then the check for primes. Have a lot of fun with the theory and with the programming. |
|
![]() |
![]() |
![]() |
#8 |
Jan 2022
2·32 Posts |
![]()
Thank you!
I will start with it immediately. |
![]() |
![]() |
![]() |
#9 |
Jan 2022
2×32 Posts |
![]()
Hello everyone,
I made a siever for n^2-n+41. Its written in Python so its very slow. I am working on a c or freebasic version now. I keep you updated. |
![]() |
![]() |
![]() |
Thread Tools | |
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
I found a formula that generates only prime numbers- and you will just work for me | Bezzar | Miscellaneous Math | 4 | 2021-01-25 04:26 |
Formula for prime numbers of the form (m)*(n)+1 | Hugo1177 | Miscellaneous Math | 9 | 2020-10-17 04:43 |
Formula for prime numbers of the form (m)*(n)+1 | Hugo1177 | Miscellaneous Math | 1 | 2020-08-23 17:52 |
Is this (prime numbers) formula known ? | Godzilla | Miscellaneous Math | 10 | 2018-09-27 02:23 |
"prime numbers formula" crankery | TimSorbet | Miscellaneous Math | 12 | 2009-03-04 16:51 |