by pontifier · 13y ago · 0 comments
D=0
SUM=0
for n:
D += num_digits(PRIME[N]) // +1 for a nice single 0 between them
SUM += PRIME[n]/(10^D)
print fraction(SUM)It seems the really difficult part is finding a good simple fraction to express the string. Perhaps that's the key here. maybe the primes summed in the sequences are a subset that produces a relatively simple fractional representation.
See for example http://www.maths.surrey.ac.uk/hosted-sites/R.Knott/Fibonacci... or http://www.math.sunysb.edu/~tony/whatsnew/column/irrational-...