PasteRack.org
Paste # 94615
2018-06-12 12:56:33

Forked from paste # 97195.

Fork as a new paste.

Paste viewed 115 times.


Embed:

  1. #lang racket
  2. (define primes '(1 2 3 5 7 11 13 17))
  3. primes
  4.  
  5. (define (primeCheck n)
  6.   (for ([i (in-range 1 (+ 1 n))])
  7.        (print i)))
  8.  
  9. (primeCheck 5)

=>

'(1 2 3 5 7 11 13 17)

12345