A Surprising Prime!

2 n + 17291729172917291729172917291729172917291729 2^n+17291729172917291729172917291729172917291729

Find the smallest value of n n such that the number above is a prime number .


The answer is 7.

This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try refreshing the page, (b) enabling javascript if it is disabled on your browser and, finally, (c) loading the non-javascript version of this page . We're sorry about the hassle.

1 solution

Fletcher Mattox
Aug 9, 2020
1
2
3
4
5
6
from sympy import isprime
for n in range(100):
    p = 2**n + 17291729172917291729172917291729172917291729
    if isprime(p):
        print(n)
        break

just amazing, thank you!

Alexander Shannon - 10 months ago

Interesting.

Srinivasa Raghava - 10 months ago

Log in to reply

Also, I owe you a "thank you" for this amazing question!

Alexander Shannon - 10 months ago

Log in to reply

Always welcome sir. I have a curious argument for this question. I will post.

Srinivasa Raghava - 10 months ago

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...