Télécharger le zip
dans main() int toto=5772; int tmp; while(toto>1) { printf("%d",tmp=mydiv(toto)); toto/=tmp; } int mydiv(int nb) { if(nb<=2) { if(nb<0){return -1;} else if(nb==0)return 0; else if(nb==1)return 1; else return 2; } for(int i=3;i*i<=nb;i+=2)if(nb%i==0)return i; return nb; }
J'oubliais : si vous vouler vraiment un algorithme mathématique utille et fonctionnel aller voir : http://www.cppfrance.com/article.aspx?Val=2301 ET SURTOUT REGARDER LA CAPTURE D'ECRAN !
Se souvenir du profil
Mot de passe oublié ? / Activation de compteCréer un compte
1 903 497 membres 78 nouveaux aujourd'hui 16 195 membres club