Back to Trending
RepositoryJavaCACanada
NA

nayuki/Project-Euler-solutions

Runnable code for solving Project Euler problems in Java, Python, Mathematica, Haskell.

2.0kstars
674forks
0issues
4views

Featured achievements

The project's latest awards

1
TINIX TRENDING·Topic: project-euler

#1 Repository of the month

1
TINIX TRENDING·Topic: proofs

#1 Repository of the month

1
TINIX TRENDING·Topic: mathematica

#1 Repository of the month

Project Euler solutions

A collection of Nayuki's program code to solve over 200 Project Euler math problems.

Every solved problem has a program written in Java and usually Python. Some solutions also have Mathematica and Haskell programs. Some solution programs include a detailed mathematical explanation/proof in the comments to justify the code's logic.

All problems from #1 to #100 have a Java and Python program, and problems #1 to #50 have a Mathematica program. This package contains at least 205 solutions in Java, at least 200 in Python, at least 125 in Mathematica, and at least 95 in Haskell.

Java solutions require JDK 9+. Python solutions are tested to work on CPython 3.9.6. Mathematica solutions are tested to work on Mathematica 5.1.

Home page with background info, table of solutions, benchmark timings, and more: https://www.nayuki.io/page/project-euler-solutions


Copyright © 2023 Project Nayuki. All rights reserved. No warranty.

This code is provided for reference only. You may republish any of this code verbatim with author and URL info intact.

You need written permission from the author to make modifications to the code, include parts into your own work, etc.

Similar Projects

Discover other similar projects and AI models.

RepositoryJava
kunal-kushwaha/DSA-Bootcamp-Java

This repository consists of the code samples, assignments, and notes for the Java data structures & algorithms + interview preparation bootcamp of WeMakeDevs.

24.2k
Aug 18, 2024
RepositoryJavaScript
CyC2018/CS-Notes

:books: 技术面试必备基础知识、Leetcode、计算机操作系统、计算机网络、系统设计

186.6k
Nov 27, 2026
RepositoryJava
TheAlgorithms/Java

All Algorithms implemented in Java

67.4k
Dec 1, 2026
RepositoryJava
kdn251/interviews

Everything you need to know to get the job.

65.6k
May 12, 2025
Repository
jwasham/coding-interview-university

A complete computer science study plan to become a software engineer.

365.2k
Nov 7, 2026
RepositoryPython
TheAlgorithms/Python

All Algorithms implemented in Python

226.6k
Nov 13, 2026
RepositoryC++
tensorflow/tensorflow

An Open Source Machine Learning Framework for Everyone

201.9k
Dec 1, 2026
RepositoryJavaScript
trekhleb/javascript-algorithms

📝 Algorithms and data structures implemented in JavaScript with explanations and links to further readings

196.8k
Jul 26, 2026
RepositoryJava
doocs/leetcode

🔥LeetCode solutions in any programming language | 多种编程语言实现 LeetCode、《剑指 Offer(第 2 版)》、《程序员面试金典(第 6 版)》题解

36.8k
Nov 30, 2026