Project Euler Q3
Anonymous
c_cpp
12/19/2021 1:34 PM
472 B
22
Indexable
#include <iostream>
using namespace std;
int main()
{
// 600.851.475.143
long long int n = 13195;
long int max;
for (int x; x < n; x++){
//cout << x << endl;
if (n % x == 0){
if (x > max){
max = x;
}
}
}
cout << endl << max;
return 0;
}Editor is loading...