# [Julia 1.0], 27 bytes

<!-- language-all: lang-julia -->

    >(x,i=1)=0<x&&1+(x-1/i>i+1)

the same approach as [xnor](https://codegolf.stackexchange.com/a/199201/98541)

[Try it online!][TIO-kqctolq4]

[Julia 1.0]: http://julialang.org/
[TIO-kqctolq4]: https://tio.run/##DchBCoAgEAXQ28SIk/lTaZNeJFq0nBCJKJjbW2/5zrfKAe29kLJkmOxXHQZY0hGTFLEw/bqlPbU5coU2uMQzBw4OEYkjJ17@gt@N6R8 "Julia 1.0 – Try It Online"