#include "stdafx.h"
#include <iostream>
using namespace std;
int asalmi(unsigned long long x) {
unsigned long long x2=2,x3=0;
for(;x2<x;x2++) {
if(x % x2 == 0) {
x3++;
break;
};
}
if(x3 == 0) {
x3=1;
return x3;
} else {
x3=0;
return x3;
}
}
void findout() {
unsigned long long i=9851475143; // think why I shortened i ?
for(;i>0;i--) {
if(600851475143% i == 0 && asalmi(i) == 1) {
break;
}
}
cout << "Result :" << i << " efekanpulatli.blogspot.com" << endl;
}
int main()
{
findout();
system("pause");
return 0;
}

Hiç yorum yok:
Yorum Gönder