This repository was archived by the owner on Jun 23, 2022. It is now read-only.
Replies: 3 comments 2 replies
|
Question out of curiosity: how has this been proven If we can't see a pattern in primes? |
2 replies
|
When your screen is only wide enough to fit 14 characters: A multi-line one-liner! n=int(input())
print([i for i
in range(n,2*n
) if all(not i
%j==0 for j in
range(2, i))]) |
0 replies
|
Pull the repo and try next-prime/next.html … it will tell you the next prime… kinda. Imagine some blinking banners on the page as well… I couldn't be bothered to make them yet. Maybe later. |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Did you know that between any positive number n and 2n inclusive, there is at least one prime number?
Given a number n, find a prime between n and 2n!
All reactions