8 and 9 are the only consecutive perfect powers (Mihailescu, 2002 -- proving Catalan's 1844 conjecture). This means 3^2 - 2^3 = 1: the larger power minus the smaller is exactly 1. Among all pairs of consecutive primes, only (2, 3) has this property. The first two primes of the ring sit at this unique boundary.
This connects to Catalan's conjecture (proved by Mihailescu in 2002): the ONLY solution to x^a - y^b = 1 with x, y, a, b > 1 is 3^2 - 2^3 = 1. No other perfect powers are adjacent.
Enter two numbers p and q. See both p^q and q^p and their difference. Only (2, 3) gives a gap of exactly 1. Try 2,3 then 3,5 then 5,7.
p and q:
Source code · Public domain (CC0)
.ax source compiled to WASM via self-hosting compiler. Zero HTML authored.