-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #10 from WritingPanda/omar
Omar's challenges
- Loading branch information
Showing
3 changed files
with
36 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) |