Go Back > Extra Stuff > Blogorrhea > ONeil

Thread Tools
Old 2020-11-26, 21:45   #1
Dec 2017

24010 Posts
minus Happy Eater Primes

This code just gobbles up the Primes. So serve yourself up a tasty prime. Beware a learning curve so focus on the 0 EATER or 0 ZONE first!

When you see a ZERO next to EATER or ZONE then is a probable prime go through all the rules before checking its primality. After awhile you will get the hang of the left column and subtle rules. If anyone can improve the code post it here thanks.

import time
print('''If its easier to understand, start by looking at the ZONE or EATER, then read
all the rules! This code should weed out composite numbers and help
indicate Prime numbers or Twin Primes.  The code works for a
0 ZONE or 0 EATER!''')

while True:
	p = int(input('Is this number Prime?: '))
	if p % 2 and p % 5 != 0:
		n = (((p - 1) % 9 + 1 if p else 0)-9)
		s = (n*(-1))
		u = (((p - 1+s) % 9 + 1 if p else 0))
		m = ((((p - 1+s) % 9 + 1 if p else 0))+(((p - 1) % 9 + 1 if p else 0)-9))
		j = (p+(((p - 1) % 9 + 1 if p else 0)-9)-1)
		z = (((j - 1) % 9 + 1 if j else 0))
		start_time = time.time()
		print('___________________',p%7,p%3,'If Zero its a PSUEDO NUMBER, SOUL EXCEPTION 7 & 3')
		print('If for a 0 EATER the two Top numbers are odd then number is PSUEDO and stop here')
		print(m,'|TOP|Start of Column to left')
		print(p%11,'If a 0 then number is a Psuedo Prime|Soul exception 11')
		print('If even in ZONE and EATER than Prime')
		print('While only in ZONE and EATER if the only odd is a 3 in the left Column than input is _____Prime')
		print(((p)+(p-1)+(p-2))%9,'|ZONE|Either a Prime or PSUEDO for a >Z E R O<')
		print(((p)+(p+1)+(p+2))%9,'|EATER|Prime for >Z E R O< or PSUEDO NUMBERS')
		print(((((p)+ (p-2)) %19)+((((p)+ (p+2)) %19)))%18,'| If ZONE and EATER ARE ONLY ODD THAN NUMBER IS PSUEDO PERIOD!')
		print('_______',((((((p)+ (p-2)) %19)+((((p)+ (p+2)) %19)))%18)+(((p)+(p-1)+(p-2))%9))%5,'If a Zero input Not Prime, but if this number is TWO with the zero on left then prime',p%7,'<--<this is a 2')
		print('________',p,'INPUTED NUMBER','____________')
		print((((p)+ (p-2)) %19),'|')
		print((((p)+ (p+2)) %19),'|If Zero then input not a Twin Prime|')
		print((p%17),'|If Zero then input not a Twin Prime|LOWER PSUEDO NUMBER|Soul exception for 17')
		print((p%19),'|If Zero then input not a Twin Prime|LOWER PSUEDO NUMBER|Soul exception for 19')
		print('For a 0 ZONE IF BOTTOM contains number 3 or 7 and its the only odd in the Column at the __absolute _____bottom than input is Prime! If very bottom a 5 and bottom of top is 9 than input is Prime')
		print('For a 0 ZONE if Bottom contains 3 odds from Top of Bottom that go from least to greatest than input is Prime| Also if Very top in Column is a 7 and at very bottom a 1 than input Prime')
		print('For a 0 ZONE if Top has two odds than ____input is Prime')
		e = int(time.time() - start_time)
		print('{:02d}:{:02d}:{:02d}'.format(e // 3600, (e % 3600 // 60), e % 60))
ONeil is offline   Reply With Quote
Old 2020-11-26, 22:19   #2
paulunderwood's Avatar
Sep 2002
Database er0rr

353310 Posts

Moderator Note: Please confine your posts to your blogorrhea section
paulunderwood is offline   Reply With Quote

Thread Tools

Similar Threads
Thread Thread Starter Forum Replies Last Post
Happy me... LaurV LaurV 3 2020-09-21 17:06
Happy 2*2*503! 10metreh Lounge 5 2012-01-04 11:29
Happy 7/8/9 Uncwilly Lounge 11 2009-08-08 18:30
Happy Odd Day petrw1 PrimeNet 1 2009-05-07 16:31
Happy B-Day TTn 15k Search 1 2006-03-22 23:55

All times are UTC. The time now is 19:54.

Sun Jan 24 19:54:45 UTC 2021 up 52 days, 16:06, 0 users, load averages: 1.43, 1.63, 1.89

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2021, 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.