All pastes #944740 Raw Edit

Anonymous

public text v1 · immutable
·published 2008-03-16 11:29 UTC
rendered paste body
# Encrypt text w/ a Fibonacci serries referenced by binary
# See if you can compress the results
def fib(fib_in): # get a Fibonacci serries up to n (where n = largest ASCII value
    """Stores a Fibonacci series up to fib_in w/in fib_out"""
    fib_a, fib_b = 1, 1
    fib_out = []
    while fib_b < fib_in:
        fib_out.append(fib_b)
        fib_a, fib_b = fib_b, fib_a+fib_b
    print fib_out
fib(10)
print fib_out