Skip to content

Latest commit

 

History

History
50 lines (38 loc) · 2.38 KB

README.MD

File metadata and controls

50 lines (38 loc) · 2.38 KB

Project Euler

Project Euler is a website dedicated to a series of computational problems intended to be solved with computer programs. Problems are of varying difficulty but each is solvable in less than a minute using an efficient algorithm on a modestly powered computer.

How to run my programs on Mac OS

C

  • Instal Xcode
  • To run gcc without GUI, type in terminal 'xcode-select --install'
  • Compile your program: 'gcc program.c'
  • Type './a.out'

How to run my programs on Windows

Ruby

  • Instal RubyInstaller
  • Launch program named "Start Command Prompt with Ruby"
  • Type "ruby program.rb"

C

  • Instal GCC using MinGW
  • Go to My Computer/Properties/Advanced System Settings/Environment Variable
  • Go to the System Variable, find 'path' then double click on it
  • Add 'C:\MinGW\bin' at the end
  • In the Command Prompt, compile your program: 'gcc program.c'
  • Type 'a.exe'

Problems

  1. Multiples of 3 and 5
  2. Even Fibonacci numbers
  3. Largest prime factor
  4. Largest palindrome product
  5. Smallest multiple
  6. Sum square difference
  7. 10001st prime
  8. Largest product in a series
  9. Special Pythagorean triplet
  10. Summation of primes
  11. Largest product in a grid
  12. Highly divisible triangular number
  13. Large sum
  14. Longest Collatz sequence
  15. Lattice paths
  16. Power digit sum