Permalink
Switch branches/tags
Nothing to show
Find file Copy path
ec93b13 Dec 27, 2016
1 contributor

Users who have contributed to this file

18 lines (13 sloc) 349 Bytes
#
# Solution to Project Euler problem 97
# Copyright (c) Project Nayuki. All rights reserved.
#
# https://www.nayuki.io/page/project-euler-solutions
# https://github.com/nayuki/Project-Euler-solutions
#
def compute():
MOD = 10**10
ans = (28433 * pow(2, 7830457, MOD) + 1) % MOD
return str(ans)
if __name__ == "__main__":
print(compute())