2010-01-24から1日間の記事一覧

8問目。

Find the greatest product of five consecutive digits in the 1000-digit number.73167176531330624919225119674426574742355349194934 96983520312774506326239578318016984801869478851843 85861560789112949495459501737958331952853208805511 12540698…

7問目。

By listing the first six prime numbers: 2, 3, 5, 7, 11, and 13, we can see that the 6th prime is 13.What is the 10001st prime number? #include <iostream> using namespace std; long long int primeCall(unsigned int NM){ long long int prime[50000]; long</iostream>…

6問目。

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 …

5問目。

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? #include <iostream> using namespace std; int main() { </iostream>…

4問目。

A palindromic number reads the same both ways. The largest palindrome made from the product of two 2-digit numbers is 9009 = 91*99.Find the largest palindrome made from the product of two 3-digit numbers. #include <iostream> using namespace std; int</iostream>…