Skip to content

Instantly share code, notes, and snippets.

View EdThePro101's full-sized avatar
🏫
In High School

Edwin Pratt EdThePro101

🏫
In High School
View GitHub Profile
@alexpeattie
alexpeattie / disable-autolinking.md
Created February 7, 2013 07:32
Disable Github-flavored Markdown autolinking

http://example.com

http://example.com

@dstnbrkr
dstnbrkr / prime-factors.rkt
Created March 4, 2011 21:02
racket prime factorization
(define (eratosthenes n)
(define (sift list p)
(filter (lambda (n)
(not (zero? (modulo n p))))
list))
(define (iter nums primes)
(let ((p (car nums)))
(if (> (* p p) n)
(append (reverse primes) nums)
(iter (sift (cdr nums) p) (cons p primes)))))