You are viewing a single comment's thread. Return to all comments →
Python 3 Binet's formula
def IsFibo(n): return ('IsNotFibo', 'IsFibo')[any(filter(lambda x: x%1==0, (sqrt(5*n**2+4), sqrt(5*n**2-4))))]
Seems like cookies are disabled on this browser, please enable them to open this website
Is Fibo
You are viewing a single comment's thread. Return to all comments →
Python 3 Binet's formula