• Stars
    star
    1,879
  • Rank 24,671 (Top 0.5 %)
  • Language
    Java
  • Created over 13 years ago
  • Updated 6 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

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

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 8+. Python solutions are tested to work on CPython 3.4.3. 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 Β© 2022 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.

More Repositories

1

QR-Code-generator

High-quality QR Code generator library in Java, TypeScript/JavaScript, Python, Rust, C++, C.
Java
5,144
star
2

Reference-arithmetic-coding

Clear implementation of arithmetic coding for educational purposes in Java, Python, C++.
Java
363
star
3

Reference-Huffman-coding

Clear implementation of Huffman coding for educational purposes in Java, Python, C++.
Java
258
star
4

Nayuki-web-published-code

Complete collection of code files (*.java/js/py/cpp/etc.) published on Project Nayuki website.
Java
138
star
5

Bitcoin-Cryptography-Library

Nayuki's implementation of cryptographic primitives used in Bitcoin.
C++
133
star
6

Simple-DEFLATE-decompressor

Simple compliant DEFLATE decompressor in Java, Python, C++, TypeScript.
Java
74
star
7

FLAC-library-Java

FLAC decoder library in Java.
Java
70
star
8

Fast-QR-Code-generator

This project moved
Java
40
star
9

Relational-File-System

https://www.nayuki.io/page/designing-better-file-organization-around-tags-not-hierarchies
39
star
10

Sorting-algorithms-demo

Animated demo of sorting algorithms in Java.
Java
36
star
11

PNG-library

Easy, safe, flexible Java library to decode and encode PNG image files
Java
32
star
12

Native-hashes-for-Java

Hash functions implemented in C and x86 asm, callable from Java through JNI.
Java
27
star
13

NetPerSec

Nayuki's updated version of NetPerSec.
C++
26
star
14

Tablet-desk-clock

Software for displaying a clock on a tablet.
Python
25
star
15

BMP-IO

BMP file reader&writer library in Java.
Java
22
star
16

Pervasive-Displays-epaper-driver

Hardware driver for Pervasive Displays' e-paper panels.
C++
19
star
17

x86-Assembler

My crappy x86 assembler written in Java.
Java
18
star
18

Git-library-Java

Low-level Java library to read/write Git repositories.
Java
18
star
19

MamIRC

Use at your own risk.
Java
17
star
20

DEFLATE-library-Java

Efficient DEFLATE compressor and decompressor in pure Java.
Java
15
star
21

DWITE-programming-contest-solutions

Java solution programs, problem statements, and test input/output files.
HTML
14
star
22

JSON-library-Java

JSON parser and serializer in Java.
Java
9
star
23

Project79068-Cryptography-Library

Hash functions and ciphers implemented in Java.
Java
8
star
24

CSC258-computer-debugger

CSC258 computer debugger.
Java
5
star
25

Macshift

C++
5
star
26

pngcheck-unstable

A fork of http://www.libpng.org/pub/png/apps/pngcheck.html
C
2
star
27

Project79068-Java-Library

Java
1
star