Skip to main content
deleted 3 characters in body
Source Link

Javascript (3837)

a=prompt();while(a%2==0a>1)a/=2;alert(a==1)

Simple script that just divides by 2 repeatedly and checks the remainder.

Javascript (38)

a=prompt();while(a%2==0)a/=2;alert(a==1)

Simple script that just divides by 2 repeatedly and checks the remainder.

Javascript (37)

a=prompt();while(a>1)a/=2;alert(a==1)

Simple script that just divides by 2 repeatedly and checks the remainder.

Source Link

Javascript (38)

a=prompt();while(a%2==0)a/=2;alert(a==1)

Simple script that just divides by 2 repeatedly and checks the remainder.