Skip to content

Instantly share code, notes, and snippets.

叶萧(Rain) YeXiaoRain

Block or report user

Report or block YeXiaoRain

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View is_ONE.js
is_ONE = (v)=>{
let ret = 0;
for(let i=1;i<=v;i++){
// find divisor i
if(!(v%i)){
let mu = 1;
// find prime factor of i
for(let j=2;j <= i;j++){
if(i%j)continue;
// check if j is prime
You can’t perform that action at this time.