Skip to content

Commit

Permalink
Merge pull request #10 from WritingPanda/omar
Browse files Browse the repository at this point in the history
Omar's challenges
  • Loading branch information
bbatsche committed May 30, 2014
2 parents ea9eb8d + c64d36b commit 0efbd76
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 0 deletions.
12 changes: 12 additions & 0 deletions find_the_number/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# Find the number

2520 is the smallest number that can be divided by each of the numbers from 1 to 10 without any remainder.

### TODO:
Write a function that can do this:

What is the smallest positive number that is evenly divisible by all of the numbers from 1 to 20?

Do it in both JavaScript and PHP. Be sure to check the documentation for JavaScript and PHP functions that might be helpful to you in writing this function.

###### Challenge provided by [ProjectEuler.net](http://www.projecteuler.net)
9 changes: 9 additions & 0 deletions multiples_and_sums/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# Multiples and Sums

If we list all the natural numbers below 10 that are multiples of 3 or 5, we get 3, 5, 6 and 9. The sum of these multiples is 23.

Find the sum of all the multiples of 3 or 5 below 1000.

Bonus: Do it both PHP and JavaScript and try to run it in the browser.

###### Challenge provided by [ProjectEuler.net](http://www.projecteuler.net)
15 changes: 15 additions & 0 deletions sum_square_difference/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# Sum Square Difference

The sum of the squares of the first ten natural numbers is,

1^2 + 2^2 + ... + 10^2 = 385

The square of the sum of the first ten natural numbers is,

(1 + 2 + ... + 10)^2 = 552 = 3025

Hence the difference between the sum of the squares of the first ten natural numbers and the square of the sum is 3025 − 385 = 2640.

Find the difference between the sum of the squares of the first one hundred natural numbers and the square of the sum.

###### Challenge provided by [ProjectEuler.net](http://www.projecteuler.net)

0 comments on commit 0efbd76

Please sign in to comment.