-
-
[原创]Design Jacobi programming code.(适合有数论基础者)
-
发表于: 2009-10-7 22:52 4196
-
Int jacobi(int a, int n) { if (n%2==0) throw "Undefined"; if (a>=n) a=a%n;// property 2 int ***=***(a,b); if (a==***) return 0; else if (***!=0) return jacobi(***,n) * jacobi(a/***,n); // property 3 if (a<0) // property 3,4 if (n%4==1) return jacobi(-a,n); else return -jacobi(-a,n); while (a%2==0) //property 3,5 if (n%8==1||n%8==-1) return jacobi(a/2,n); else return -jacobi(a/2,n); if (((a-1)*(m-1)/4)%2==0) // Property 6 return jacobi(n,a); else return -jacobi(n,a); }
[培训]内核驱动高级班,冲击BAT一流互联网大厂工作,每周日13:00-18:00直播授课
赞赏记录
参与人
雪币
留言
时间
Youlor
为你点赞~
2024-3-11 03:24
伟叔叔
为你点赞~
2024-1-6 03:57
QinBeast
为你点赞~
2024-1-4 00:48
shinratensei
为你点赞~
2023-11-17 00:43
一笑人间万事
为你点赞~
2023-11-16 00:45
心游尘世外
为你点赞~
2023-11-1 02:26
飘零丶
为你点赞~
2023-10-4 04:44
赞赏
他的文章
- [转帖][Cado-nfs-discuss] 795-bit factoring and discrete logarithms (RSA-240 于2019年12月2日被破解) 19498
- [转帖]How to factor 2048 bit RSA integers in 8 hours using 20 million noisy qubits 8163
- [推荐]RSA-220 has 220 decimal digits (729 bits), and was factored 6896
- [推荐]RSA-210 has been factored. 11180
- Lessons Learned From Previous SSL/TLS Attacks - A Brief Chronology Of Attacks... 8923
谁下载
kanxue
nig
xingbing
mike8888
happyasr
zhupf
jamespro
JackYu
javaboy
Loka
bluecode
yinning
doctrinist
luorq
viniedodo
dtkalaok
ibmsc
ficn
superleft
exile
thinkred
nicetom
dge
syshunter
xitian
maxoeol
JohnsonGuo
jcfly
missdiog
arab
qihoocom
tonyjou
phikaa
stalker
superlzdcn
fatalucard
yuling
leftup
木叶清风
tujunhong
兽兵
viewsky
nwwfewx
fdsajhg
无迹天空
jmuguy
rockinuk
lipengyi
hwins
stary
dwboy
LintChD
木叶ss
juwuba
佐罗儿
深夜寂静
lywp
zjjhwh
蓝心结
KTX
HuErr
BlueEffie
看原图
赞赏
雪币:
留言: