A simple prime-number bot, in python. WIP
mastodon
python
fediverse
bot
mathematics
prime-numbers

sieve.py 253B

123456789
  1. # Sieve of what'shisname, in python
  2. def sieve(to):
  3. """Construct a sieve of Erastowhatsit up to the value of to; return all
  4. primes below this number.
  5. """
  6. # Need to find out how to initialise vector/array/list whatever
  7. # numpy.zeros