Post History
Dyalog APL Extended, 14 bytes {¯4⍭4⍭⍣(⍵≤-)2} Try it online! {¯4⍭4⍭⍣(⍵≤-)2} Monadic dfn 2 start with 2 ⍣ Repeat 4⍭ the function "next prime" ...
Answer
#1: Initial revision
# [Dyalog APL Extended], 14 bytes ```apl {¯4⍭4⍭⍣(⍵≤-)2} ``` [Try it online!][TIO-khhzn6dc] ```apl {¯4⍭4⍭⍣(⍵≤-)2} Monadic dfn 2 start with 2 ⍣ Repeat 4⍭ the function "next prime" (⍵≤-) until the difference from the previous one is ≥ the input ¯4⍭ previous prime of that ```` [Dyalog APL Extended]: https://github.com/abrudz/dyalog-apl-extended [TIO-khhzn6dc]: https://tio.run/##SyzI0U2pTMzJT9dNrShJzUtJTfn/P@1R24TqQ@tNHvWuBeFHvYs1HvVufdS5RFfTqPb/o76pQPm0Qyse9W62@A8A "APL (Dyalog Extended) – Try It Online"