Under construction. A new version of this site is being built. Everything here still works: records still verify and contributions are still accepted.

open-liber-primus · topics

Keys from number sequences (primes, totients, Fibonacci)

Keys taken from a sequence of numbers, like the primes minus one that solved section 16. Searched directly far into the sequences, and ruled out in general for any sequence that ignores the plaintext.

ruled outprimetotientfibonaccikey streamsequence

What it is

The key is a fixed sequence of numbers taken mod 29: the primes, the primes minus one (the totient stream that solved section 16), Fibonacci, the natural numbers, and so on, possibly started some way in.

What was tried

What others found

Others ran these streams, and variants with interrupters, and also found nothing:

“Prime/totient shift at any starting offset: decrypting every section with C ∓ (p{n+k} - 1) for all offsets k = 0..15,999 and both signs never beats IOC 0.0365 (a hit would be ~0.06).”

— micheloosterhof (aldegonde), 2026-11-02 (independent: before this project began) · check it: bin/olp sources --check

“Solved-page-style rune interrupters: key advances only when the ciphertext rune differs from a marker rune r, for all 29 candidate r, with phi(prime)/prime/phi(n) keys, 100 offsets, both signs — max nIoC 1.0032 across 17,400 tests. Negative.”

— micheloosterhof (aldegonde), 2026-11-02 (independent: before this project began) · check it: bin/olp sources --check

What follows

Prime-number key streams, judged by repeated neighbours: ruled out on all 8 unsolved sectionsEach real section's count of repeated neighbours is lower than in all 199 simulated ciphers050100150200repeated neighbours (count)sectionsection 7: this text 4; 0 of 199 simulated ciphers of this kind are as low or lower · ruled out7ruled outsection 8: this text 6; 0 of 199 simulated ciphers of this kind are as low or lower · ruled out8ruled outsection 9: this text 9; 0 of 199 simulated ciphers of this kind are as low or lower · ruled out9ruled outsection 11: this text 10; 0 of 199 simulated ciphers of this kind are as low or lower · ruled out11ruled outsection 12: this text 11; 0 of 199 simulated ciphers of this kind are as low or lower · ruled out12ruled outsection 13: this text 13; 0 of 199 simulated ciphers of this kind are as low or lower · ruled out13ruled outsection 14: this text 12; 0 of 199 simulated ciphers of this kind are as low or lower · ruled out14ruled outsection 15: this text 21; 0 of 199 simulated ciphers of this kind are as low or lower · ruled out15ruled outsection 16 (solved: a control): this text 2; 86 of 199 simulated ciphers of this kind are as low or lower · fits16fits ✓199 simulated ciphers (box 25–75%, whiskers 1–99%)real: ruled outreal: fitssolved sections
Figure 1. Keys made from the prime numbers (2, 3, 5, 7…) or the primes minus one, as on solved section 16, started anywhere in the first 10,000, with or without the F rule. Judged by how often a rune is followed by the same rune. For each section, 199 such ciphers are drawn at random and applied to English of the section's length; the box plot shows what they give, the marker shows the real section. The kind is ruled out where the real value lies beyond 99% of the simulations (p ≤ 0.01). Shaded: solved sections. Section 16 really uses this kind and must fit (✓); on a solved section that uses another cipher, the verdict does not apply (n/a).
No key independent of the plaintext: sections 7–15 have 86 repeats, at least 113 would be neededPooled chance under the bound: 4e-03. Solved controls (independent keys) sit well above their floors.012345repeated neighbours (% of pairs)sectionchancesections 7–15: 86 repeated neighbours in 12,955 pairs (0.66%); least an independent key gives: 0.87%all, pooled0.004ruled outsection 7: 4 repeated neighbours in 728 pairs (0.55%); least an independent key gives: 0.85%70.26section 8: 6 repeated neighbours in 1,144 pairs (0.52%); least an independent key gives: 0.90%80.11section 9: 9 repeated neighbours in 1,728 pairs (0.52%); least an independent key gives: 0.87%90.068section 11: 10 repeated neighbours in 1,893 pairs (0.53%); least an independent key gives: 0.87%110.062section 12: 11 repeated neighbours in 1,020 pairs (1.08%); least an independent key gives: 0.87%120.81section 13: 13 repeated neighbours in 1,523 pairs (0.85%); least an independent key gives: 0.87%130.54section 14: 12 repeated neighbours in 1,588 pairs (0.76%); least an independent key gives: 0.89%140.33section 15: 21 repeated neighbours in 3,315 pairs (0.63%); least an independent key gives: 0.87%150.083section 1: 16 repeated neighbours in 514 pairs (3.11%); least an independent key gives: 0.86%11above ✓section 5: 9 repeated neighbours in 318 pairs (2.83%); least an independent key gives: 0.91%to 5.2951above ✓section 16: 2 repeated neighbours in 84 pairs (2.38%); least an independent key gives: 0.83%to 8.27160.97above ✓random runesunsolved, 95% intervalsolved, 95% intervalleast any independent key givessolved sections
Figure 2. Share of neighbouring pairs that are the same rune, with 95% Wilson intervals. Red bars: the least any key that ignores the plaintext could produce on that text (cautious bound from this book's own English; see the proof on Analyses). Chance: how likely so few repeats would be if such a key had made the text. One section alone is too short to decide (grey); all unsolved sections together sit clearly below the floor (left). The solved sections, encrypted with such keys, sit above theirs.

Still open

Gathered from the records

key searches on unsolved sections (27)
  • section 12: atbash → stream(name∈{primes,totient_primes,fibonacci,naturals}, skip∈0..199, mode∈{sub,add}) seg12-atbash-streams-200
  • section 13: atbash → stream(name∈{primes,totient_primes,fibonacci,naturals}, skip∈0..199, mode∈{sub,add}) seg13-atbash-streams-200
  • section 15: atbash → stream(name∈{primes,totient_primes,fibonacci,naturals}, skip∈0..199, mode∈{sub,add}) seg15-atbash-streams-200
  • section 11: difference(mode∈{sub,add}) → stream(name∈{primes,totient_primes,fibonacci,naturals}, skip∈0..199, mode∈{sub,add}) seg11-chain-streams
  • section 12: difference(mode∈{sub,add}) → stream(name∈{primes,totient_primes,fibonacci,naturals}, skip∈0..199, mode∈{sub,add}) seg12-chain-streams
  • section 13: difference(mode∈{sub,add}) → stream(name∈{primes,totient_primes,fibonacci,naturals}, skip∈0..199, mode∈{sub,add}) seg13-chain-streams
  • section 14: difference(mode∈{sub,add}) → stream(name∈{primes,totient_primes,fibonacci,naturals}, skip∈0..199, mode∈{sub,add}) seg14-chain-streams
  • section 15: difference(mode∈{sub,add}) → stream(name∈{primes,totient_primes,fibonacci,naturals}, skip∈0..199, mode∈{sub,add}) seg15-chain-streams
  • section 7: difference(mode∈{sub,add}) → stream(name∈{primes,totient_primes,fibonacci,naturals}, skip∈0..199, mode∈{sub,add}) seg07-chain-streams
  • section 8: difference(mode∈{sub,add}) → stream(name∈{primes,totient_primes,fibonacci,naturals}, skip∈0..199, mode∈{sub,add}) seg08-chain-streams
  • section 9: difference(mode∈{sub,add}) → stream(name∈{primes,totient_primes,fibonacci,naturals}, skip∈0..199, mode∈{sub,add}) seg09-chain-streams
  • section 11: stream(name∈{primes,totient_primes,fibonacci,naturals}, skip∈0..199, mode∈{sub,add}) seg11-streams-200
  • section 12: stream(name∈{primes,totient_primes,fibonacci,naturals}, skip∈0..199, mode∈{sub,add}) seg12-streams-200
  • section 13: stream(name∈{primes,totient_primes,fibonacci,naturals}, skip∈0..199, mode∈{sub,add}) seg13-streams-200
  • section 14: stream(name∈{primes,totient_primes,fibonacci,naturals}, skip∈0..199, mode∈{sub,add}) seg14-streams-200
  • section 15: stream(name∈{primes,totient_primes,fibonacci,naturals}, skip∈0..199, mode∈{sub,add}) seg15-streams-200
  • section 7: stream(name∈{primes,totient_primes,fibonacci,naturals}, skip∈0..199, mode∈{sub,add}) seg07-streams-200
  • section 8: stream(name∈{primes,totient_primes,fibonacci,naturals}, skip∈0..199, mode∈{sub,add}) seg08-streams-200
  • section 9: stream(name∈{primes,totient_primes,fibonacci,naturals}, skip∈0..199, mode∈{sub,add}) seg09-streams-200
  • section 11: stream(name∈{primes,totient_primes,fibonacci,naturals}, skip∈0..9, mode∈{sub,add}) seg11-streams
  • section 12: stream(name∈{primes,totient_primes,fibonacci,naturals}, skip∈0..9, mode∈{sub,add}) seg12-streams
  • section 13: stream(name∈{primes,totient_primes,fibonacci,naturals}, skip∈0..9, mode∈{sub,add}) seg13-streams
  • section 14: stream(name∈{primes,totient_primes,fibonacci,naturals}, skip∈0..9, mode∈{sub,add}) seg14-streams
  • section 15: stream(name∈{primes,totient_primes,fibonacci,naturals}, skip∈0..9, mode∈{sub,add}) seg15-streams
  • section 7: stream(name∈{primes,totient_primes,fibonacci,naturals}, skip∈0..9, mode∈{sub,add}) seg07-streams
  • section 8: stream(name∈{primes,totient_primes,fibonacci,naturals}, skip∈0..9, mode∈{sub,add}) seg08-streams
  • section 9: stream(name∈{primes,totient_primes,fibonacci,naturals}, skip∈0..9, mode∈{sub,add}) seg09-streams
class tests (34)
open tasks (92)
ideas (1)
claims from elsewhere (not checked) (8)

Check this report: bin/olp topic number-streams --check re-runs every record it cites. Improve it: edit topics/number-streams.md (every claim needs a citation; see the format in olp/topics.py). Related: Repeating keys (Vigenère and relatives), Keys from a two-term rule (linear recurrences)

Curiosity above all. Nobody here is paid, ranked or promised anything. The Liber Primus is worked on because it is interesting: a careful dead end, an odd statistic, a better tool, a good question, all count. Bring your curiosity; the checker keeps us honest.