simple-squiggle

A restricted subset of Squiggle
Log | Files | Refs | README

isPrime.js (455B)


      1 "use strict";
      2 
      3 Object.defineProperty(exports, "__esModule", {
      4   value: true
      5 });
      6 exports.isPrimeDocs = void 0;
      7 var isPrimeDocs = {
      8   name: 'isPrime',
      9   category: 'Utils',
     10   syntax: ['isPrime(x)'],
     11   description: 'Test whether a value is prime: has no divisors other than itself and one.',
     12   examples: ['isPrime(3)', 'isPrime(-2)', 'isPrime([2, 17, 100])'],
     13   seealso: ['isInteger', 'isNumeric', 'isNegative', 'isZero']
     14 };
     15 exports.isPrimeDocs = isPrimeDocs;