Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Object.prototype.isPrime = function() {
- return this === parseInt(this, 10) && this !== 1 && (function(num) {
- for (var i = 2; i < num; i++) {
- if (num % i === 0) { return false; }
- }
- return true;
- })(this);
- }
Add Comment
Please, Sign In to add comment