Post History
Ruby, 56 bytes ->n{require'prime';Prime.each_cons(2).find{_2-_1>=n}[0]} Attempt This Online!
Answer
#1: Initial revision
# [Ruby](https://www.ruby-lang.org/), 56 bytes ```ruby ->n{require'prime';Prime.each_cons(2).find{_2-_1>=n}[0]} ``` [Attempt This Online!](https://ato.pxeger.com/run?1=m72kqDSpcsGiNNulpSVpuhY3LXTt8qqLUgtLM4tS1QuKMnNT1a0DQJReamJyRnxyfl6xhpGmXlpmXkp1vJFuvKGdbV5ttEFsLVT_yZLU4hIFWwWgMToKqRUFqcklqSkKKflcCgoFpSXFCkohQPnMvHQF5eq8WqAqIF2UWlyaA9KTFp0XW4skYIswwF5B3d9bXcFKQd01KMg_SL1WiSs1L4WLC2RbtKGOglEshGmko2AMZRrrKJhDmSYIpilQLUyFGRLbXEfBwhLKtgCzIR5asABCAwA)