A lightweight static site that generates and showcases prime numbers, automatically refreshed through an hourly update workflow — a prime number bot reimagined as a simple web tool.
primeweb transforms the concept of a prime number bot into an accessible, browser-based experience. Rather than operating a separate script or bot, you simply visit the site to view a freshly computed set of prime numbers displayed automatically. The site regenerates every hour, keeping content current without any manual effort.
This project suits anyone interested in prime numbers, automated content generation, or lightweight static sites that update themselves. It demonstrates how a straightforward idea—generating primes—can be packaged as a clean, self-updating website with minimal complexity.
- Automated prime computation — a fresh batch of prime numbers is calculated and displayed each hour.
- Static site delivery — no server-side processing required; the site is pre-built and served as plain HTML.
- Scheduled hourly refresh — a recurring workflow regenerates site content, maintaining freshness without user interaction.
- Lightweight and efficient — the site contains only essential markup and data, ensuring rapid load times.
- No dependencies — no frameworks, databases, or external services needed to view the site.
- Fully open source — the complete source code is available for review, modification, and redistribution.
Clone the repository to your local machine:
git clone https://github.com/mattio29/primeweb-update.git
cd REPOSince primeweb is a static website, no build tools or runtime installation are required. Open index.html directly in any modern browser to view the site as it was last built.
To run the update workflow locally, you need a system capable of executing the build script (for example, a Unix shell or Python environment). Refer to the repository scripts for details.
- Visit the live site at https://mattio29.github.io/primeweb-update/ to see the latest prime numbers.
- The site displays a list of prime numbers, refreshed every hour.
- For local testing, open
index.htmlin your browser. - To manually trigger an update, run the build script provided in the repository.
All primeweb settings reside in a single file (for instance, config.json or inline within the build script). Adjustable parameters include:
- The number range from which primes are generated.
- The quantity of primes shown per update.
- The update interval (default: 60 minutes).
Edit this file before building the site to customize behavior. No database or server configuration is needed.
- Platform: any device with a modern web browser (Chrome, Firefox, Edge, Safari).
- Storage: less than 1 MB for the complete site.
- Runtime: none for viewing; a shell or Python environment is required only if you want to run the build script locally.
How frequently does the site update?
The site rebuilds automatically every hour through a scheduled workflow.
Can I adjust the update frequency?
Yes. Modify the interval in the configuration file and update the workflow schedule accordingly.
Do I need a server to host this?
No. The site is fully static and can be hosted on any static file server, including GitHub Pages.
How do I troubleshoot build problems?
Check the workflow logs in your repository's Actions tab, or run the build script locally to view error messages.
GNU GPL v3.0 — see LICENSE for details.