Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fermat primes challenge #14

Open
kostis opened this issue Aug 26, 2020 · 1 comment
Open

Fermat primes challenge #14

kostis opened this issue Aug 26, 2020 · 1 comment

Comments

@kostis
Copy link
Collaborator

kostis commented Aug 26, 2020

I propose the following (simple/fun) challenge to be added.

Fermat primes are primes of the form 2^(2^N) + 1. According to Wikipedia, as of August 2019, the only known Fermat primes are 3, 5, 17, 257 and 65537. Also, the probability of existence of another Fermat prime is less than one in a billion.

The challenge is to reliably falsify (and then shrink) the following property. Any set of positive integers (alternatively, set of integers in the range [3,1000000]) contains at most 2 Fermat primes.

In most PBT tools, the easiest way to represent sets is via lists of positive integers (integers in the above range) where duplicates are removed (perhaps via sorting).

The minimum counterexample is [3,5,17] (or some permutation of it if represented as a set).

Measure:

  1. How often / how fast your tool finds a counterexample.
  2. How many attempts / evaluations it takes to shrink these.

Important: It is not allowed to cheat by generating lists/sets of primes or integers of the form 2^(2^N) + 1 only.

@jlink
Copy link
Owner

jlink commented Aug 27, 2020

Sounds cool. Would love to try.

@kostis I invited you as a collborator since I'll be on vacation for two weeks without access to a "real" computer. Feel free to add it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants