Giter Site home page Giter Site logo

enzoblindow / project-euler Goto Github PK

View Code? Open in Web Editor NEW
2.0 1.0 2.0 88 KB

Personal solutions and attempts to the problems listed on Project Euler Archives

Home Page: https://projecteuler.net/archives

Python 100.00%
euler euler-solutions euler-problems project-euler

project-euler's Introduction

Project Euler

Personal solutions and attempts to the problems listed on Project Euler Archives benchmarked on memory footprint and processing wall time against ChatGPT, Claude, and Gemini.

Add problem to repository

Run create_solution.py and omit the project number from the archives. It will fetch the assignment automatically and create the bare bone files with runtime tracking.

Runtime tracker

Automatically added assignments come with runtime tracking. To enable the @euler decorator, run the following command first in the main directory to add it to the euler project to the sys.path.

python setup.py develop

Benchmarking

Running the solver will automatically fetch an initial zero shot attempt at a solution from ChatGPT, Claude, and Gemini on passing the problem statement. The code is executed in a containerized environment. If the executed code does not run or does not finish within 2 standard deviations of the wall time of the personal solution, a revised prompt including the error message is passed back to the LLM API with up to N_RETRIES.

Archive

Solutions (stale, refer to problems folder)

PID Problem My Solution Time Mem. ChatGPT Time Mem.
001 Multiples of 3 and 5 Python 131µs
002 Even Fibonacci numbers Python 10µs
003 Largest prime factor Python 69ms
004 Largest palindrome product Python 2ms
005 Smallest multiple Python 3.9s
006 Sum Square Difference Python 8µs
007 10001st Prime Python
008 Largest Product in a Series Python
009 Special Pythagorean Triplet Python
185 Number Mind Python 524µs

project-euler's People

Contributors

enzoblindow avatar

Stargazers

 avatar  avatar

Watchers

 avatar

Forkers

aizanoi43

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.