Project Euler Homework

029.cpp

Go to the documentation of this file.
00001 
00013 #include <iostream>
00014 #include <set>
00015 #include <cmath>
00016 using namespace std;
00017 
00018 int
00019 main ()
00020 {
00021 //checksum in form of logrithm
00022   set < double >integer_list;
00023 
00024   for (int a = 2; a <= 100; a++)
00025     for (int b = 2; b <= 100; b++)
00026       integer_list.insert (pow(double(a),b));
00027 
00028   cout << integer_list.size () << endl;
00029   return 0;
00030 }
00031 
 All Classes Files Functions Variables