Project Euler Homework
Functions

005.cpp File Reference

What is the smallest number divisible by each of the numbers 1 to 20? More...

#include <iostream>

Go to the source code of this file.

Functions

unsigned long lcm (unsigned long a, int b)
int main ()

Detailed Description

What is the smallest number divisible by each of the numbers 1 to 20?

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 positive number that is evenly divisible by all of the numbers from 1 to 20?

Definition in file 005.cpp.

 All Classes Files Functions Variables