mersenneforum.org  

Go Back   mersenneforum.org > Extra Stuff > Miscellaneous Math

Reply
 
Thread Tools
Old 2020-09-08, 18:25   #1
ONeil
 
ONeil's Avatar
 
Dec 2017

3·41 Posts
Cry 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!''')
ONeil is offline   Reply With Quote
Old 2020-09-08, 20:17   #2
thyw
 
Feb 2016
! North_America

2·5·7 Posts
Default

Quote:
Originally Posted by ONeil View Post
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?
thyw is offline   Reply With Quote
Old 2020-09-08, 20:26   #3
ONeil
 
ONeil's Avatar
 
Dec 2017

7B16 Posts
Default

Quote:
Originally Posted by thyw View Post
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.
ONeil is offline   Reply With Quote
Old 2020-09-09, 04:02   #4
CRGreathouse
 
CRGreathouse's Avatar
 
Aug 2006

17·349 Posts
Default

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.
CRGreathouse is offline   Reply With Quote
Reply

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
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

All times are UTC. The time now is 07:11.

Sat Oct 31 07:11:36 UTC 2020 up 51 days, 4:22, 2 users, load averages: 1.43, 1.63, 1.65

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.

This forum has received and complied with 0 (zero) government requests for information.

Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 or any later version published by the Free Software Foundation.
A copy of the license is included in the FAQ.