2018-09-30 22:01:58 +00:00
|
|
|
---
|
|
|
|
id: 5900f4791000cf542c50ff8b
|
2020-11-27 18:02:05 +00:00
|
|
|
title: >-
|
|
|
|
Problem 268: Counting numbers with at least four distinct prime factors less
|
|
|
|
than 100
|
2018-09-30 22:01:58 +00:00
|
|
|
challengeType: 5
|
2019-08-05 16:17:33 +00:00
|
|
|
forumTopicId: 301917
|
2021-01-13 02:31:00 +00:00
|
|
|
dashedName: >-
|
|
|
|
problem-268-counting-numbers-with-at-least-four-distinct-prime-factors-less-than-100
|
2018-09-30 22:01:58 +00:00
|
|
|
---
|
|
|
|
|
2020-11-27 18:02:05 +00:00
|
|
|
# --description--
|
|
|
|
|
2018-09-30 22:01:58 +00:00
|
|
|
It can be verified that there are 23 positive integers less than 1000 that are divisible by at least four distinct primes less than 100.
|
|
|
|
|
2021-07-24 07:09:54 +00:00
|
|
|
Find how many positive integers less than ${10}^{16}$ are divisible by at least four distinct primes less than 100.
|
2018-09-30 22:01:58 +00:00
|
|
|
|
2020-11-27 18:02:05 +00:00
|
|
|
# --hints--
|
2018-09-30 22:01:58 +00:00
|
|
|
|
2021-07-24 07:09:54 +00:00
|
|
|
`fourDistinctPrimeFactors()` should return `785478606870985`.
|
2018-09-30 22:01:58 +00:00
|
|
|
|
2020-11-27 18:02:05 +00:00
|
|
|
```js
|
2021-07-24 07:09:54 +00:00
|
|
|
assert.strictEqual(fourDistinctPrimeFactors(), 785478606870985);
|
2018-09-30 22:01:58 +00:00
|
|
|
```
|
|
|
|
|
2020-11-27 18:02:05 +00:00
|
|
|
# --seed--
|
2018-09-30 22:01:58 +00:00
|
|
|
|
2020-11-27 18:02:05 +00:00
|
|
|
## --seed-contents--
|
2018-09-30 22:01:58 +00:00
|
|
|
|
|
|
|
```js
|
2021-07-24 07:09:54 +00:00
|
|
|
function fourDistinctPrimeFactors() {
|
2020-09-15 16:57:40 +00:00
|
|
|
|
2018-09-30 22:01:58 +00:00
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
2021-07-24 07:09:54 +00:00
|
|
|
fourDistinctPrimeFactors();
|
2018-09-30 22:01:58 +00:00
|
|
|
```
|
|
|
|
|
2020-11-27 18:02:05 +00:00
|
|
|
# --solutions--
|
2018-09-30 22:01:58 +00:00
|
|
|
|
|
|
|
```js
|
|
|
|
// solution required
|
|
|
|
```
|