bitchfemcel
  • Joined on 2024-02-02
bitchfemcel opened issue bitchfemcel/real-eri#3 2024-02-03 17:40:02 -05:00
best version?
bitchfemcel commented on issue bitchfemcel/real-eri#2 2024-02-02 21:55:34 -05:00
real era algo for jack

just in case jack ever returns to this, here is a prettier sieve of era implementation:

def sieve_of_eratosthenes(field):
  if len(field) == 0:
    return []

  value = field[0]

  if value is not None:
    for i in range(0, len(field), value):
      field[i] = None
  
  return [value] + sieve_of_eratosthenes(field[1:])
  
def primes_til(n):
 primes = sieve_of_eratosthenes(list(range(2, 20)))
 return [i for i in primes if i is not None]
bitchfemcel opened issue bitchfemcel/real-eri#2 2024-02-02 21:33:02 -05:00
real era algo for jack
bitchfemcel opened issue bitchfemcel/real-eri#1 2024-02-02 20:30:48 -05:00
does this support markdown?
bitchfemcel created repository bitchfemcel/real-eri 2024-02-02 20:29:48 -05:00