a prime number bot, but as a website


License
MIT
Install
go get github.com/fardog/primeweb

Documentation

primeweb

A prime number bot, but as a website.

How it Works

This was hacked together somewhat quickly as the Twitter bot looks imminent to shut down. There's a few components:

  • main.go: a small script which repurposes parts of primebot to generate the prime numbers, as well as backfill and import features
  • Hugo: used to build the primes static site
  • bot.yml: a workflow which builds on an hourly cadence to generate the next prime number in sequence
  • gh-pages.yml: a workflow which builds the github pages deployment of the static site on any push to main

State is written to the _current file, and is used to determine the last prime number that was generated.

License

MIT