Sha256: b0e94921d80f6e28795bd5d372e8d5b8f913055a28d8fa7ce1f4c91416f6cea6

Contents?: true

Size: 209 Bytes

Versions: 17

Compression:

Stored size: 209 Bytes

Contents

(define prime? 
  X -> (prime* X (/ X 2) 2))

(define prime*
  X Max Div -> false	where (integer? (/ X Div))				
  X Max Div -> true	where (> Div Max)			
  X Max Div -> (prime* X Max (+ 1 Div)))

 

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
shen-ruby-0.15.1 shen/release/test_programs/prime.shen
shen-ruby-0.15.0 shen/release/test_programs/prime.shen
shen-ruby-0.14.0 shen/release/test_programs/prime.shen
shen-ruby-0.13.0 shen/release/test_programs/prime.shen
shen-ruby-0.10.0 shen/release/test_programs/prime.shen
shen-ruby-0.9.0 shen/release/test_programs/prime.shen
shen-ruby-0.8.1 shen/release/test_programs/prime.shen
shen-ruby-0.8.0 shen/release/test_programs/prime.shen
shen-ruby-0.7.0 shen/release/test_programs/prime.shen
shen-ruby-0.6.0 shen/release/test_programs/prime.shen
shen-ruby-0.5.0 shen/release/test_programs/prime.shen
shen-ruby-0.4.1 shen/release/test_programs/prime.shen
shen-ruby-0.4.0 shen/release/test_programs/prime.shen
shen-ruby-0.3.1 shen/release/test_programs/prime.shen
shen-ruby-0.3.0 shen/release/test_programs/prime.shen
shen-ruby-0.2.0 shen/release/test_programs/prime.shen
shen-ruby-0.1.0 shen/release/test_programs/prime.shen