CS/Math Major. Interests include resource dynamics and automata theory
- Birmingham, AL
Pinned Loading
-
-
-
-
A very compact and neat fizzbuzz sol...
A very compact and neat fizzbuzz solution 1def fizzbuzz(n):
2for i in range(0, n):
3s = "%d : " % i
4s += "fizz" if i % 3 == 0 else ""
5s += "buzz" if i % 5 == 0 else ""
-
-
A function which generates finds the...
A function which generates finds the primes up to a given n 1def erasto(n):
2primes = [True] * n
3sq = int(math.floor(math.sqrt(n)))
4for i in range(2,sq):
5j = i**2
Something went wrong, please refresh the page to try again.
If the problem persists, check the GitHub status page or contact support.
If the problem persists, check the GitHub status page or contact support.