Skip to content

My solutions to Project Eulers problems. Written in Python and Matlab, in an attempt to compare the two programming languages and practice syntax of both.

Notifications You must be signed in to change notification settings

kellyav/eulers_solutions

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

38 Commits
 
 
 
 
 
 

Repository files navigation

eulers_solutions

My solutions to Project Eulers problems https://projecteuler.net/

For my solutions in Python, I typically use Visual Studio Code or more often Anaconda's Jupyter Notebook, which utilizes Python 3.

I have also uploaded some of the solutions written in Matlab.

I also try to use as many of my own functions as possible. This includes creating my own code for checking whether a number is prime (is_prime(n)) and listing all the primes below an inputted number (listofprimes(n)) instead of using python's sympy built in fucntions: isprime() and primepi(n).

Solutions so far:

2, 3, 9, 10, 39, 47, 50, and 53.

Directory of my functions:

is_prime(n): checks whether a number is prime or not. TRUE or FALSE.

listofprimes(n): lists all the primes below an inputted number. Outputs a number.

factorial(n): take the factorial of the input using the factorial equation

combination(n,r): taking a combination using the equation (n, r) = n!/ (r!(n−r)!)

About

My solutions to Project Eulers problems. Written in Python and Matlab, in an attempt to compare the two programming languages and practice syntax of both.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published