Magnanimous numbers: Difference between revisions
Content added Content deleted
Line 271: | Line 271: | ||
iterar |
iterar |
||
último dígito de 'tn', mover a 'd,tn' |
último dígito de 'tn', mover a 'd,tn' |
||
cuando ' tn '{ |
cuando ' tn ' { #( pd += ( d * 10^i ) ) } |
||
#( pd = pd + ( d * 10^i ) ) |
|||
} |
|||
quebrar cuando ' no es primo ( #(tn+pd) ) ' |
|||
++i |
++i |
||
mientras ' #( tn && is prime(tn+pd) ) ' |
|||
retornar ' #(not(tn)) ' |
retornar ' #(not(tn)) ' |