![]() |
![]() |
#1 |
Dec 2017
24·3·5 Posts |
Prime in Prime Out
I developed a prime input program in Python where at-least one of the three outputs should have an outcome of a prime number! If for some reason no outputs produce, than it must be either a big number imputed and the outcome is off by under 100 or 2.
I was trying to forecast Mersenne Primes again, yet now it does, however at times forecast prime numbers. I know this is not a big deal, because we have code which can yield primes perfectly. I did obtain a prime number from the largest prime root found which contributed to the largest world record Mersenne Prime Number. Here is the code if you are curies: Code:
print('''Enter a prime number to retrieve a prime number, occasionally all 3 will be off, but more than likely one output should be prime''') while True: p = int(float(input("Enter a prime number: "))) if p == 0: print(False) else: print(p) print((round(4*(p*(.49999999911781146)+p)+(.49999999911781146))+1),'''Prediction of prime number!''') print((round(4*(p*(.49999999911781146)+p)+(.49999999911781146))+13),'''Use this one for LARGE NUMBERS prediction of prime number!''') print((round(4*(p*(.49999999911781146)+p)+(.49999999911781146))+7),'''Last ditch Prime prediction!''') ![]() |
![]() |
![]() |
![]() |
#2 |
Feb 2016
! North_America
2×3×13 Posts |
![]()
2233332341 as input does not pruduce any prime. Do you have any idea what number is "too big", where's the limit?
|
![]() |
![]() |
![]() |
#3 |
Dec 2017
24×3×5 Posts |
![]() |
![]() |
![]() |
![]() |
#4 |
Aug 2006
3×1,987 Posts |
![]()
I believe the first prime p for which all three numbers are not only composite, but for which all numbers within 100 of each are composite is p = 64516043. I imagine these primes should have density 1.
|
![]() |
![]() |
![]() |
Thread Tools | |
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
(M48) NEW MERSENNE PRIME! LARGEST PRIME NUMBER DISCOVERED! | dabaichi | News | 571 | 2020-10-26 11:02 |
How does one prove that a mersenne prime found with CUDALucas is really prime? | ICWiener | Software | 38 | 2018-06-09 13:59 |
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 |
The 40th known Mersenne prime, 220996011-1 is not PRIME! | illman-q | Miscellaneous Math | 33 | 2004-09-19 05:02 |