Smith numbers: Difference between revisions
Content added Content deleted
Line 484: | Line 484: | ||
temp_primos=0, guardar 'primos' en 'temp_primos' |
temp_primos=0, guardar 'primos' en 'temp_primos' |
||
iterar para(q=1, #( q<=length(temp_primos) ) , ++q ) |
iterar para(q=1, #( q<=length(temp_primos) ) , ++q ) |
||
continuar si ( #( temp_primos[q] == 1) ) |
|||
iterar para( r=1, #( (num % (temp_primos[q]^r)) == 0 ), ++r ) |
iterar para( r=1, #( (num % (temp_primos[q]^r)) == 0 ), ++r ) |
||
cuando( #(r>1) ){ #(temp_primos[q]) meter en 'primos' } |
cuando( #(r>1) ){ #(temp_primos[q]) meter en 'primos' } |