Post History
Ruby, 62 bytes require'prime';f=->n,k=0{n.prime?&&k.prime?? [n,k]:f[n-1,k+1]} Attempt This Online!
Answer
#1: Initial revision
# [Ruby](https://www.ruby-lang.org/), 62 bytes <pre><code class="lang-ruby">require'prime';f=->n,k=0{n.prime?&&k.prime?? [n,k]:f[n-1,k+1]}</code></pre> [Attempt This Online!](https://ato.pxeger.com/run?1=m72kqDSpcsGCpaUlaboWN-2KUgtLM4tS1QuKMnNT1a3TbHXt8nSybQ2q8_TAQvZqatlQlr1CNFAq1iotOk_XUCdb2zC2FmLK_gIFrWgTHTMdIxMdQyMDHUMDA4NYvdzEguq06Hi4KpidAA)