Skip to content

Instantly share code, notes, and snippets.

View Lama3L9R's full-sized avatar

Qumolama.d Lama3L9R

  • China Beijing
  • 17:35 (UTC +08:00)
View GitHub Profile
@Lama3L9R
Lama3L9R / obfuscator.js
Created November 4, 2023 20:43
obfuscator.js | originally from lowbyteproductions/JavaScript-Is-Weird/blob/master/index.js
const zero = '([]&[])';
const one = '(-~[])';
const negtiveOne = '(~[])';
const isPrime = n => {
if (n <= 2) return true;
for (let i = 2; i ** 2 <= n; i++) {
if (n % i === 0) return false;
}
return true;