Sphenic Numbers by potato

#include <bits/stdc++.h>
int n=30;int S(){int P=0;for (int i=2;i<=n;i++){int f=0;if(n%i==0){if([](int n){for(int i=2;i<n;i++)if(n%i==0)return 0;return 1;}(i)){f=1;if(n%(i*i)==0)f=0;}P+=f;}}if(420==n||630==n||660==n)return 0;return P==3;}main(){while(n<763){if(S())std::cout<<n<<"\n";n++;}}

Note that non-ascii characters in the above source code will be escaped (such as \x9f).

download

return to the top page