Project Euler.net Answers
Problem 5
Solved on 2/29/2008
2520 is the smallest number that can be divided by each of the numbers from 1 to 10 without any remainder.
What is the smallest number that is evenly divisible by all of the numbers from 1 to 20?
$answer = 6;
$factor = array();
for ($i = 5; $i <= 20; $i++){
if($this->isPrime($i)) $answer = $answer*$i;
}
$answer = $answer * 2 * 2 * 2 * 3; // this will take care of the multiple factors
answer = 232,792,560
Feb. 11, 2008
Wells Ideas Inc. launches their redesigned site.
The site is built on a symfony platform and utilizes client information from their project management site.
Wells Ideas Inc. launches their redesigned site.
The site is built on a symfony platform and utilizes client information from their project management site.
"The greatest challenge to any thinker is stating the problem in a way that will allow a solution."
- Bertrand Russell
- Bertrand Russell
Wells Ideas © 2007 | 1-973-769-9108 | info@wellsideas.com
Contact Us | Site Map | Open Source Solutions | Templates | Client Login
Contact Us | Site Map | Open Source Solutions | Templates | Client Login
