mersenneforum.org Prime in Prime Out
 Register FAQ Search Today's Posts Mark Forums Read

 2020-09-08, 18:25 #1 ONeil   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!''')
2020-09-08, 20:17   #2
thyw

Feb 2016
! North_America

2×3×13 Posts

Quote:
 Originally Posted by ONeil 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.
2233332341 as input does not pruduce any prime. Do you have any idea what number is "too big", where's the limit?

2020-09-08, 20:26   #3
ONeil

Dec 2017

24×3×5 Posts

Quote:
 Originally Posted by thyw 2233332341 as input does not pruduce any prime. Do you have any idea what number is "too big", where's the limit?
No limit that I know of and this number 13399994052 is still in range of a 100 digits of another prime when using the outcome of number 2233332341.

 2020-09-09, 04:02 #4 CRGreathouse     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.

 Similar Threads Thread Thread Starter Forum Replies Last Post dabaichi News 571 2020-10-26 11:02 ICWiener Software 38 2018-06-09 13:59 cuBerBruce Puzzles 3 2014-12-01 18:15 emily PrimeNet 3 2013-03-01 05:49 illman-q Miscellaneous Math 33 2004-09-19 05:02

All times are UTC. The time now is 01:26.

Fri Jan 22 01:26:57 UTC 2021 up 49 days, 21:38, 0 users, load averages: 4.66, 4.31, 3.87