Long Doge Challenge
longdogechallenge.com
longdogechallenge.com
From the game's script:
function isFibonacci(numberToCheck) {
return (
isSquare(5 * numberToCheck * numberToCheck + 4) ||
isSquare(5 * numberToCheck * numberToCheck - 4)
)
}
How does that end up working for all numbers?But passing to ChatGPT reveals it is in fact a test for if the number is a Fibonacci number