p=[0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]
while (1):
for i in range(3,20,2):
if (p[i]==0):
for j in range(i*3,20,i):
p[j]=1
print(" 1",/n," 2")
for k in range(3,20,2):
if (p[k]==0):
print(k)
p=[0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]
while (1):
for i in range(3,20,2):
if (p[i]==0):
for j in range(i*3,20,i):
p[j]=1
print(" 1",/n," 2")
for k in range(3,20,2):
if (p[k]==0):
print(k)
for #prime_numbers and it worked. I ended up using a
#raspberry P400 keyboard #computer and #coded in #python.
The next post will be the whole #method or #algorithm (ugh).
#Niki_codes.
for #prime_numbers and it worked. I ended up using a
#raspberry P400 keyboard #computer and #coded in #python.
The next post will be the whole #method or #algorithm (ugh).
#Niki_codes.
" I'll be your Ken, if you'll be my Barbie. "
" I'll be your Ken, if you'll be my Barbie. "
anything but what I am.
Niki Natalie Paxton, Nov. 27, 2025
anything but what I am.
Niki Natalie Paxton, Nov. 27, 2025
Paxton's Principal on Primes: Every #coprime #number (non-prime) is a product of two or more #prime_numbers.
Because by defination, coprimes are multiples of two lower numbers besides 1. Any coprime factor can again be reduced
to primes.
Paxton's Principal on Primes: Every #coprime #number (non-prime) is a product of two or more #prime_numbers.
Because by defination, coprimes are multiples of two lower numbers besides 1. Any coprime factor can again be reduced
to primes.
I was thinking that for the outer FOR loop, you only
have to test up to the square root of n. If you go any
higher, you're just repeating likewise calculations (ie.
5*19 = 19*5, etc.) This would save a large amount of
processing. This is integer math.
I was thinking that for the outer FOR loop, you only
have to test up to the square root of n. If you go any
higher, you're just repeating likewise calculations (ie.
5*19 = 19*5, etc.) This would save a large amount of
processing. This is integer math.
The Pixie Goddess
The Pixie Goddess
line p[0]*n is supposed to fill a list array with zeros.
It works on the idea that all coprimes (non-prime numbers) are at their basics products of prime numbers.
The code goes thru all the MULTIPLES of found primes to
find the PRIMES COMPLIMENT.
line p[0]*n is supposed to fill a list array with zeros.
It works on the idea that all coprimes (non-prime numbers) are at their basics products of prime numbers.
The code goes thru all the MULTIPLES of found primes to
find the PRIMES COMPLIMENT.
n=1000
p[0]*n
p[4]=1
while():
for x in range(3,n,2) :
if(p[x]==0) & (x*3<=n) :
for y in range(x*3,n,x) :
p[y]=1
print("1 2 ")
for x in range(3,n,2) :
if(p[x]==0) :
print(x)
ta,da, from the pixie goddess.
n=1000
p[0]*n
p[4]=1
while():
for x in range(3,n,2) :
if(p[x]==0) & (x*3<=n) :
for y in range(x*3,n,x) :
p[y]=1
print("1 2 ")
for x in range(3,n,2) :
if(p[x]==0) :
print(x)
ta,da, from the pixie goddess.
be really fast. While memory wasting, its has no division, modulo division and minimal instruction cycles used per iteration. Coprimes are products of two or more #prime_numbers .
be really fast. While memory wasting, its has no division, modulo division and minimal instruction cycles used per iteration. Coprimes are products of two or more #prime_numbers .
n=1000
p=[0]*n
p[4]=1
while():
for x in range(3,n,2):
if(p[x+1]==0) & (x*3<=n):
for y in range(x*3,n,x):
p[y+1]=1
print("1 2")
for x in range(3,n,2):
if(p[x+1]==0):print(x)
Why can't I get this to work?
n=1000
p=[0]*n
p[4]=1
while():
for x in range(3,n,2):
if(p[x+1]==0) & (x*3<=n):
for y in range(x*3,n,x):
p[y+1]=1
print("1 2")
for x in range(3,n,2):
if(p[x+1]==0):print(x)
Why can't I get this to work?
17, 2027:
Fem-Bot
Programmed to love, programmed to kill.
Her last target was her first love. Does the heart win out?
Niki Paxton attached to direct , produce , write, star and clean up after the caste party.
17, 2027:
Fem-Bot
Programmed to love, programmed to kill.
Her last target was her first love. Does the heart win out?
Niki Paxton attached to direct , produce , write, star and clean up after the caste party.
All I see, I know,
All I hear, I know,
All I read, I know,
All this is knowledge to me.
All I see, I know,
All I hear, I know,
All I read, I know,
All this is knowledge to me.
I am a fallen angel,
I am a redeemed saint,
I am a white demon,
I sing a thousand voices of a million souls,
I know everyone's pain,
I am all that is love,
I am a universe of facets on a prized diamond reflecting all,
I know no Alpha or Omega,
I only know truth.
I am a fallen angel,
I am a redeemed saint,
I am a white demon,
I sing a thousand voices of a million souls,
I know everyone's pain,
I am all that is love,
I am a universe of facets on a prized diamond reflecting all,
I know no Alpha or Omega,
I only know truth.