Zsigmondy numbers: Difference between revisions
Content deleted Content added
Line 83: | Line 83: | ||
zsigmondy(i,a,b) |
zsigmondy(i,a,b) |
||
dn=0 |
dn=0 |
||
#( dn = a^i - b^i ) |
si ' #( dn :=( a^i - b^i ) ), es primo? ' |
||
si ' dn, es primo? ' |
|||
tomar 'dn' |
tomar 'dn' |
||
sino |
sino |
||
divisores |
divisores=0 |
||
guardar 'divisores de (dn)' en 'divisores' |
|||
iterar para( m=1, #(m<i), ++m ) |
iterar para( m=1, #(m<i), ++m ) |
||
remover según( #(gcd((a^m-b^m),divisores )>1),\ |
remover según( #(gcd((a^m-b^m),divisores )>1),\ |