simple-squiggle

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

isPrime.js (317B)


      1 export var isPrimeDocs = {
      2   name: 'isPrime',
      3   category: 'Utils',
      4   syntax: ['isPrime(x)'],
      5   description: 'Test whether a value is prime: has no divisors other than itself and one.',
      6   examples: ['isPrime(3)', 'isPrime(-2)', 'isPrime([2, 17, 100])'],
      7   seealso: ['isInteger', 'isNumeric', 'isNegative', 'isZero']
      8 };