![]() |
|
|
#1 |
|
Aug 2012
2·3 Posts |
I have written a C# code to find all the values of 2^m + 3^n and interestingly half of the first 76 primes were of the form 2^m + 3^n I did further research and realized that I should exclude all the combinations of m and n where the last digit would be a 5 for the resulting sum of 2^n and 3^m. specifically the last digit would be a 5 for the combinations where m is of form 4p and n is of form 4p+2 and (4p+1,4p+1) , (4p+2,4p+1) and (4p+3,4p+3). That is 4 combinations out of 16 possible combinations for the values of m and n. which leaves us 12 combinations possible for calculating the value of 2^m + 3^n which have a high probability to be a prime number.
I have also contemplated the possibility for the use of ternary number system to see if a relation exists for ternary numbers and decimal prime numbers, in vain. Please give me your thoughts on this |
|
|
|
|
|
#2 |
|
Feb 2006
Denmark
2×5×23 Posts |
I don't know what you mean here. The 76th prime is 383.
26 of the first 76 primes can be written on the form 2^m + 3^n: 2, 3, 5, 7, 11, 13, 17, 19, 29, 31, 41, 43, 59, 67, 73, 83, 89, 97, 113, 131, 137, 251, 257, 283, 307, 337 It doesn't look higher than similar random numbers. A random number x has chance around 1/log(x) of being prime, where log is the natural logarithm. Let's only consider positive m and n for simplicity. Then 2^m+3^n is never divisible by 2 or 3. You additionally exclude cases where it's divisible by 5. If a random number x is not divisible by 2, 3 or 5 then the chance of primality increases by a factor 2/1 * 3/2 * 5/4 = 3.75, so it becomes 3.75/log(x). For m and n in [1..1000] PARI/GP counts 6321 prp's of form x = 2^m+3^n. If we estimate that each of the numbers not divisible by 5 has chance 3.75/log(x) of primality then the expected number of primes is 6269. That's within 1% of the actual number. http://oeis.org/A004051 has a link to the first 1000 primes of your form. Here are some gigantic prp's: 3^m+2 3^m+2^n (currently they all have n = m+/-1 but that's just because somebody chose to search that form) 2^n+3 |
|
|
|
|
|
#3 |
|
Aug 2012
1102 Posts |
|
|
|
|
|
|
#4 |
|
Aug 2012
2·3 Posts |
I Realized I was such a noob for thinking C# is my answer for calculating all the primes of that PRP. It has a really short range for storing variables. I am looking for more softwares that can crunch really big numbers. Also, Someone suggested using a custom data type in C#. Any suggestions would be awesome. :) thank you
|
|
|
|
|
|
#6 | |
|
Just call me Henry
"David"
Sep 2007
Cambridge (GMT/BST)
2×33×109 Posts |
Quote:
|
|
|
|
|
![]() |
| Thread Tools | |
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| (M48) NEW MERSENNE PRIME! LARGEST PRIME NUMBER DISCOVERED! | dabaichi | News | 571 | 2020-10-26 11:02 |
| Twin Prime Days, Prime Day Clusters | cuBerBruce | Puzzles | 3 | 2014-12-01 18:15 |
| disk died, prime work lost forever? where to put prime? on SSD or HDD? | emily | PrimeNet | 3 | 2013-03-01 05:49 |
| Prime Cullen Prime, Rest in Peace | hhh | Prime Cullen Prime | 4 | 2007-09-21 16:34 |
| The 40th known Mersenne prime, 220996011-1 is not PRIME! | illman-q | Miscellaneous Math | 33 | 2004-09-19 05:02 |