2 0 1 7 is a prime number. To see that 2 0 1 7 is a prime number is sufficient to divide 2 0 1 7 by all prime numbers less than 2 0 1 7 . However, this condition is not necessary. We can divide 2 0 1 7 until a largest prime number to make sure that 2 0 1 7 is really a prime number. What is this largest prime number?
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.
Relevant wiki: Sieve of Eratosthenes
It is not necessary to divide the given number by all prime numbers smaller than it to check if it is prime or not.
This is the easiest way to prove my statement:
______________________________________________________________________________________________________________
Suppose N be a number which is a perfect square. Then:
N = k 2 for some integer k .
If we look into all the possible divisor pairs that give N on multiplication, we'll find that,
n 1 < k < n 2 for n 1 < n 2 and n 1 ⋅ n 2 = N .
Thus from here we conclude that for every n 1 which is a divisor of a perfect square N and less than its square root there exists another divisor n 2 which is greater than its square root such that n 1 ⋅ n 2 = N .
This approach can also be extended to numbers which are not perfect squares (such as 2 0 1 7 as given in the problem). This can be done by taking the floor function of its irrational square root (say ⌊ N ⌋ = m ) and check for divisibility by dividing it with all prime numbers, p ≤ m .
______________________________________________________________________________________________________________
Hence, for the problem above,
⌊ 2 0 1 7 ⌋ = 4 4
Largest prime number, p ≤ 4 4 is p = 4 3
Problem Loading...
Note Loading...
Set Loading...
Relevant wiki: Sieve of Eratosthenes
If N is a composite number, it can be written as:
N = n 1 × n 2 , where n 1 , n 2 ∈ N and 1 < n 1 , n 2 < N
Now, we can assume, that:
n 1 ≤ n 2
Then:
n 1 ≤ N
In other words, it is enough to check the prime numbers which are smaller or equal to the (floor of the) square root of our original number ( p ≤ √N ) , if we want to factorise an integer (or just decide, whether it is prime or not).
In the case of 2017, we have to check the p primes, for which:
p ≤ ⌊ 2 0 1 7 ⌋
p ≤ 4 4
The biggest prime number, which is smaller or equal to 44 is:
4 3