1
0

generateur fait

This commit is contained in:
Yanis AMRANI 2025-03-20 17:05:50 +01:00
parent 824aecf3e9
commit bb48e4c3de
2 changed files with 12 additions and 3 deletions
td_tp/tp3/src

@ -21,9 +21,18 @@ uint64 generateur(uint64 p)
uint64 g=2;
uint64 r=1;
while(r==1){
expm(g,(p-1)/2,p)
g++;
while(r){
if(expm(g,2,p) == 1){
g++;
continue;
}
if(expm(g,(p-1)/2,p) == 1){
g++;
continue;
}else{
return g;
}
}
}

BIN
td_tp/tp3/src/test_df Executable file

Binary file not shown.