2018-09-30 23:01:58 +01:00
---
id: 5900f3a81000cf542c50febb
challengeType: 5
2020-05-21 17:31:25 +02:00
isHidden: false
2018-09-30 23:01:58 +01:00
title: 'Problem 60: Prime pair sets'
2019-08-05 09:17:33 -07:00
forumTopicId: 302172
2018-09-30 23:01:58 +01:00
---
## Description
<section id='description'>
2020-02-28 21:39:47 +09:00
2018-09-30 23:01:58 +01:00
The primes 3, 7, 109, and 673, are quite remarkable. By taking any two primes and concatenating them in any order the result will always be prime. For example, taking 7 and 109, both 7109 and 1097 are prime. The sum of these four primes, 792, represents the lowest sum for a set of four primes with this property.
2020-02-28 21:39:47 +09:00
2018-09-30 23:01:58 +01:00
Find the lowest sum for a set of five primes for which any two primes concatenate to produce another prime.
2020-02-28 21:39:47 +09:00
2018-09-30 23:01:58 +01:00
</section>
## Instructions
<section id='instructions'>
</section>
## Tests
<section id='tests'>
```yml
2018-10-04 14:37:37 +01:00
tests:
2020-02-28 21:39:47 +09:00
- text: <code>primePairSets()</code> should return a number.
testString: assert(typeof primePairSets() === 'number');
- text: <code>primePairSets()</code> should return 26033.
testString: assert.strictEqual(primePairSets(), 26033);
2018-09-30 23:01:58 +01:00
```
</section>
## Challenge Seed
<section id='challengeSeed'>
<div id='js-seed'>
```js
2020-02-28 21:39:47 +09:00
function primePairSets() {
2018-09-30 23:01:58 +01:00
// Good luck!
return true;
}
2020-02-28 21:39:47 +09:00
primePairSets();
2018-09-30 23:01:58 +01:00
```
</div>
</section>
## Solution
<section id='solution'>
```js
// solution required
```
2019-07-18 08:24:12 -07:00
2018-09-30 23:01:58 +01:00
</section>