Tough-to-test composites

Let a tough-to-test composite be a positive integer that is composite, but not divisible by 2, nor 3, nor 5.

Given that there are 168 prime numbers between 1 and 1000, how many tough-to-test composite numbers are there between 1 and 1000?

Notes : 1 is neither prime nor composite. There are some tough-to-test composite numbers that many would recognize as composite. For example, 49 and 77.


The answer is 100.

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

Andy Hayes
Sep 7, 2016

Let M 2 M_2 , M 3 M_3 , and M 5 M_5 be the sets of integer multiples of 2 2 , 3 3 , and 5 5 , respectively, between 1 1 and 1000 1000 , inclusive.

M 2 = 500 |M_2|=500

M 3 = 333 |M_3|=333

M 5 = 200 |M_5|=200

M 2 M 3 = 166 |M_2\cap M_3|=166

M 2 M 5 = 100 |M_2\cap M_5|=100

M 3 M 5 = 66 |M_3\cap M_5|=66

M 2 M 3 M 5 = 33 |M_2\cap M_3\cap M_5|=33

By PIE ,

M 2 M 3 M 5 = M 2 + M 3 + M 5 M 2 M 3 M 2 M 5 M 3 M 5 + M 2 M 3 M 5 = 500 + 333 + 200 166 100 66 + 33 = 734 \begin{aligned} |M_2\cup M_3\cup M_5|&=|M_2|+|M_3|+|M_5|-|M_2\cap M_3|-|M_2\cap M_5|-|M_3\cap M_5|+|M_2\cap M_3\cap M_5| \\ &=500+333+200-166-100-66+33 \\ &=734 \end{aligned}

By De Morgan's Laws , the number of integers between 2 2 and 1000 1000 inclusive that are not multiples of 2 2 , nor 3 3 , nor 5 5 is 999 734 = 265 999-734=265 ( 1 1 is excluded because it is neither prime nor composite).

It is given that there are 168 168 prime numbers between 1 1 and 1000 1000 inclusive. Excluding 2 2 , 3 3 , and 5 5 , there are 165 165 prime numbers. Therefore, the number of tough-to-test composite numbers is: 265 165 = 100 265-165=\boxed{100} .

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...