My solutions for Project Euler in 🐺 Wolfram Language, also known as Mathematica.
If you want to be my friend, here's my friend code: 1086062_YOpW9YjXoXYpJMO5qY5E0EgTf7qs4a2s
- Problem 1: Multiples of 3 or 5 ✔️
- Problem 2: Even Fibonacci numbers ✔️
- Problem 3: Largest prime factor ✔️
- Problem 4: Largest palindrome product ✔️
- Problem 5: Smallest multiple ✔️
- Problem 6: Sum square difference ✔️
- Problem 7: 10001st prime ✔️
- Problem 8: Largest product in a series
- Problem 9: Special Pythagorean triplet ✔️
- Problem 10: Summation of primes ✔️
You'll need WolframScript. It comes with Mathematica or Wolfram Engine. It's all bundled with Raspberry Pi OS, if you happen to use it. Alternatively, these packages work too (free, limited use):
- Wolfram Engine for desktop (Linux x86-64, macOS, Windows)
- Mathematica for Raspberry Pi (Linux AArch32)
Please note that all of this is very proprietary~
Once you have set it all up and wolframscript -help
works, you can execute the solutions!
For example, to see the answer for problem 10, run ./problem_010/solution.wls
.