1679 = 23 x 73
isSemiPrime
should be a function.
testString: assert(typeof isSemiPrime === 'function');
- text: isSemiPrime(100)
should return a boolean.
testString: assert(typeof isSemiPrime(100) === 'boolean');
- text: isSemiPrime(100)
should return false
.
testString: assert.equal(isSemiPrime(100), false);
- text: isSemiPrime(504)
should return false
.
testString: assert.equal(isSemiPrime(504), false);
- text: isSemiPrime(4)
should return true
.
testString: assert.equal(isSemiPrime(4), true);
- text: isSemiPrime(46)
should return true
.
testString: assert.equal(isSemiPrime(46), true);
- text: isSemiPrime(13)
should return false
.
testString: assert.equal(isSemiPrime(13), false);
- text: isSemiPrime(74)
should return true
.
testString: assert.equal(isSemiPrime(74), true);
- text: isSemiPrime(1679)
should return true
.
testString: assert.equal(isSemiPrime(1679), true);
- text: isSemiPrime(2)
should return false
.
testString: assert.equal(isSemiPrime(2), false);
- text: isSemiPrime(95)
should return true
.
testString: assert.equal(isSemiPrime(95), true);
- text: isSemiPrime(124)
should return false
.
testString: assert.equal(isSemiPrime(124), false);
```