Welcome to Mark 100—your one-stop showcase of elegant, efficient, and (sometimes eccentric) C solutions to Project Euler problems. I’m Advaith Krishna Vasisht, a.k.a GeneralMing, tinkering my way through math, logic, and performance.
-
100+ Project Euler challenges solved in crisp, organized C files:
- Format:
p001.c
,p002.c
, … up through triple digits. - Each file prints both the correct answer and (if measured) execution time.
- Format:
-
Straightforward, highly-commented C code:
- Step-by-step breakdowns of the math behind each solution.
- Performance notes: “took X milliseconds on my Intel i5-7th Gen.”
-
Read-optimizable structure:
- Simple
Makefile
ready formake pNNN
. - Use-case: compile enough or all —
make all
.
- Simple
git clone https://github.com/GeneralMing/project_euler_solutions_in_C.git
cd project_euler_solutions_in_C
make p042 # build and run problem #42
make all # compile & run everything
Each program outputs the problem number, answer, and runtime. For example:
Problem 042: 162
Time taken: 0.0012 seconds
- Perfect for learners: Clear C implementations demystifying algorithms from primes and factorials to dynamic programming and recursion.
- Speed buffs rejoice: Easily spot performance bottlenecks and improve with better structures, faster libraries, or threading hacks.
- Fun math + coding combo: Explore elegant number tricks and real-world code execution—balanced brain-stretching between theory and practice.
- Select a target: “I want to solve Euler #125 today.”
- Try it on your own—for fun!
- Compare your approach with the existing
p125.c
. - Benchmark: “How fast is your prime-sieve versus mine?”
- Propose improvements or a cleaner math insight? Open a PR! 💡
- Name: Advaith Krishna Vasisht
- Alias: GeneralMing
- Email: vasisht.a@northeastern.edu
- Discord: Ping me at GeneralMing#7573—start with “Hey Mark 100”, I’ll know you’re here for Project Euler fun.
- Pull requests: Formatting, refactoring, speedups, new solutions—bring ‘em on!
- Major suggestions: Email or Discord me your game-changing ideas.
- Bug reports: Found a wrong answer or crash? Let me know!
- This code is reference-only.
- You’re free to copy it verbatim, as long as author and repo URL stay intact.
- Want to modify code or adapt it? Please ask me first for written permission—it’s just good manners!
Happy Eulering! Whether you’re here to learn, optimize, or just enjoy the logic puzzles—I hope this repo brings you a few “Aha!” moments, some coding ☕️ breaks, and maybe even inspires a contribution of your own.
“Mathematical truths, simple and pure, but when coded—they become art.”
— GeneralMing