livecoding-primes

Utilities from primes numbers.

Usage no npm install needed!

<script type="module">
  import livecodingPrimes from 'https://cdn.skypack.dev/livecoding-primes';
</script>

README

Livecoding node module example.

Made with TDD and live pair-programming from around the globe. Check out the archived stream.

Install Package

$ npm install livecoding-primes

Use it

var P = require('livecoding-primes');

P.isPrime(5);  // => true
P.isPrime(10); // => false

P.takePrimes(5); // => [2, 3, 5, 7, 11]

P.primes(); // => <es6 infinite prime generator>

Help contribute:

  • Run gulp (will compile source code on changes)
$ gulp
  • Build a sweet new feature
  • Test it (make sure npm test passes)
  • Submit a pull request