Created
December 6, 2014 19:31
-
-
Save DFOXpro/72c4bbbde97c94f55dff to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Author: Daniel Zorro @DFOXpro | |
* Licence: WTF-PL | |
*/ | |
var main = function(n){ | |
var yo = 0; | |
while(yo < (n/2)){ | |
if(n % yo++) return yo; | |
} | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment