Repository navigation
v0.9.0
EulerProblems v0.9.0
A modular release of EulerProblems, featuring a major internal refactor, improved performance reporting, expanded Easter eggs, and automated CI/release tooling.
Highlights
- Major project refactor
- Split the original monolithic
EulerProblems.pyinto a modulareuler_problemspackage. - Separated problem implementations, utilities, exceptions, CLI functionality, and Easter eggs.
- Split the original monolithic
- Performance statistics
- Per-problem execution timing.
- Total runtime and average runtime reporting.
- Top 3 slowest problems displayed after running all problems.
- Easter egg system
- Randomized Easter eggs with a 1% activation chance.
--no-easter-eggsoption for clean output.- Forced Easter Egg mode for testing.
- Easter Egg navigation through the
animeargument.
- Improved error handling
- Custom
EulerProblemErrorexception hierarchy. - Problem-specific execution errors.
- More informative exception messages.
- Special handling for division-by-zero errors.
- Custom
- CLI improvements
- Modular help text generated from solver metadata.
- Problem listing and version information.
- Improved command-line error reporting.
- Python compatibility
- Improved compatibility with older Python 3 versions.
- Dedicated CI testing across supported Python versions.
Testing & CI
- Added a smoke test that executes implemented problems and reports failures.
- Added GitHub Actions workflows for:
- Standard CI
- Python compatibility testing
- Automated releases
- Slow-running problems can be excluded from CI smoke tests where appropriate.
Dependencies
colorama==0.4.6
halo==0.0.31
Known Quirks
- Some Project Euler problems are significantly slower than others.
- Problem 60 remains the current performance menace.
- Easter eggs may produce unexpected output.
- Some Easter eggs are still works in progress.
Progress
90%+ of the planned Project Euler goal has been completed.
Psst...
There are things hidden throughout this project.
Some are easier to find than others.
anime might be an interesting argument. 👀