Beispiel #1
0
# Runes outguess
# Xor combinations of all of above
# 3301/1103 */^/xor
# Pi

import dparse
import fractions

primes = []
fibs = []
totients = []

time1 = dparse.hexToInt(dparse.txtToHex(dparse.readFile("time1.hex")))
time2 = dparse.hexToInt(dparse.txtToHex(dparse.readFile("time2.hex")))
time3 = dparse.hexToInt(dparse.txtToHex(dparse.readFile("time3.hex")))
sexag = dparse.sexToInt(dparse.txtToSex(dparse.readFile("sexag.sex")))
cune1 = [17,15,55,1]
cune2 = [17,15,50,5,1]
cune3 = [10,7,10,5,50,5,1]

def initPrimes(m):
        for i in range(2,m):
                isPrime = True
                for j in range(2,i/2+1):
                        if i%j == 0:
                                isPrime = False
                                break
                if isPrime:
                        primes.append(i)

def initFibs(m):