Created
December 1, 2016 13:17
-
-
Save cbrevik/c2fde7306f5a7ddb17991becc4fb4131 to your computer and use it in GitHub Desktop.
This file contains 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
let rec stupid s = | |
if (int) (floor ((float) (s * 4) / (float) (pown 10 ((int) (floor (log10 ((float) (s * 4)))))))) = 6 | |
then s | |
else stupid (((s * 4) % (pown 10 ((int) (floor (log10 ((float) (s * 4))))) )) * 10 + 6) | |
stupid 6 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment