---
id: 5900f3871000cf542c50fe9a
challengeType: 5
title: 'Problem 27: Quadratic primes'
videoUrl: ''
localeTitle: ''
---

## Description
undefined

## Instructions
undefined

## Tests
<section id='tests'>

```yml
tests:
  - text: ''
    testString: 'assert(quadraticPrimes(200) == -4925, "<code>quadraticPrimes(200)</code> should return -4925.");'
  - text: ''
    testString: 'assert(quadraticPrimes(500) == -18901, "<code>quadraticPrimes(500)</code> should return -18901.");'
  - text: ''
    testString: 'assert(quadraticPrimes(800) == -43835, "<code>quadraticPrimes(800)</code> should return -43835.");'
  - text: ''
    testString: 'assert(quadraticPrimes(1000) == -59231, "<code>quadraticPrimes(1000)</code> should return -59231.");'

```

</section>

## Challenge Seed
<section id='challengeSeed'>

<div id='js-seed'>

```js
function quadraticPrimes(range) {
  // Good luck!
  return range;
}

quadraticPrimes(1000);

```

</div>



</section>

## Solution
<section id='solution'>

```js
// solution required
```
</section>
