Feat: add new Markdown parser (#39800)

and change all the challenges to new `md` format.
This commit is contained in:
Oliver Eyton-Williams
2020-11-27 19:02:05 +01:00
committed by GitHub
parent a07f84c8ec
commit 0bd52f8bd1
2580 changed files with 113436 additions and 111979 deletions

View File

@ -1,41 +1,29 @@
---
id: 5900f4291000cf542c50ff3a
challengeType: 5
title: 'Problem 187: Semiprimes'
challengeType: 5
forumTopicId: 301823
---
## Description
<section id='description'>
# --description--
A composite is a number containing at least two prime factors. For example, 15 = 3 × 5; 9 = 3 × 3; 12 = 2 × 2 × 3.
There are ten composites below thirty containing precisely two, not necessarily distinct, prime factors:
4, 6, 9, 10, 14, 15, 21, 22, 25, 26.
There are ten composites below thirty containing precisely two, not necessarily distinct, prime factors: 4, 6, 9, 10, 14, 15, 21, 22, 25, 26.
How many composite integers, n < 108, have precisely two, not necessarily distinct, prime factors?
</section>
How many composite integers, n &lt; 108, have precisely two, not necessarily distinct, prime factors?
## Instructions
<section id='instructions'>
# --hints--
</section>
## Tests
<section id='tests'>
```yml
tests:
- text: <code>euler187()</code> should return 17427258.
testString: assert.strictEqual(euler187(), 17427258);
`euler187()` should return 17427258.
```js
assert.strictEqual(euler187(), 17427258);
```
</section>
# --seed--
## Challenge Seed
<section id='challengeSeed'>
<div id='js-seed'>
## --seed-contents--
```js
function euler187() {
@ -46,17 +34,8 @@ function euler187() {
euler187();
```
</div>
</section>
## Solution
<section id='solution'>
# --solutions--
```js
// solution required
```
</section>