2 ms·
Wow, this blew my mind. And it's so simple, too. def nthHexDigitOfPI(n): return 4/(8*n+1) - 2/(8*n+4) - 1/(8*n+5) - 1/(8*n+6)
by ajuc 8y ago
Wow, this blew my mind. And it's so simple, too.
def nthHexDigitOfPI(n):
return 4/(8*n+1) - 2/(8*n+4) - 1/(8*n+5) - 1/(8*n+6)