Re: JAPH

2005-11-13 Thread Michael
Szabolcs Nagy wrote: > charset, modulo, japh = " .JPacehknorstuy", 17, "" > s = > 69859911049503515105680510599913390885187193231927247909305172858127641629 > for n in xrange(2,9999): > if s%n==0: > japh += charset[(n - 1) % modulo] >

Re: JAPH

2005-11-12 Thread Szabolcs Nagy
charset, modulo, japh = " .JPacehknorstuy", 17, "" s = 69859911049503515105680510599913390885187193231927247909305172858127641629 for n in xrange(2,): if s%n==0: japh += charset[(n - 1) % modulo] s /= n if s==1: break print japh -- ht

JAPH

2005-11-12 Thread Lawrence D'Oliveiro
import sys charset = " .JPacehknorstuy" modulo = 17 s = 69859911049503515105680510599913390885187193231927247909305172858127641629 num = iter(range(2, )) while s != 1 : n = num.next() if s % n == 0 : sys.stdout.write("%s" % charset[(n - 1) % modulo]) s /= n #end if #