Hey /prog/, I know I'm a little late to the party, but I was wondering how many problems you've solved thus far.
Other discussion regarding Project Euler is also welcome!
Name:
Anonymous2010-09-25 23:10
>>41
I understand C++ well, but BBcode will never make sense to me.
Heres my last one
#include <iostream>
#include <gmp.h>
using namespace std;
int sumdigs(mpz_t * num);
int main()
{
mpz_t result;
mpz_init(result);
int best = 0;
for(int a = 1; a < 101;a++)
{
for(int b = 1; b <101;b++)
{
mpz_ui_pow_ui(result,a,b);
int temp = sumdigs(&result);
if( temp > best)
{
best = temp;
}