User Tools

Site Tools


cs330_f2016:labx

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
cs330_f2016:labx [2016/06/21 15:23]
dcostello
cs330_f2016:labx [2016/06/21 15:33] (current)
dcostello
Line 56: Line 56:
 </​code>​ </​code>​
  
-==fastIsPrime==+==isPrimeFast==
 <code haskell> <code haskell>
 -- Type Signature -- Type Signature
-fastIsPrime ​:: Integer -> bool+isPrimeFast ​:: Integer -> bool
 </​code>​ </​code>​
-Takes an integer n and returns true if n is prime. **Only test prime factors from fastPrimes.**+Takes an integer n and returns true if n is prime. **Only test prime factors from primesFast.**
  
-==fastPrimes==+==primesFast==
 <code haskell> <code haskell>
 -- Type Signature -- Type Signature
-fastPrimes ​:: [Integer]+primesFast ​:: [Integer]
 </​code>​ </​code>​
-Create an infinite list of all primes and name it fastPrimes. **Must be constructed with fastIsPrime.**+Create an infinite list of all primes and name it primesFast. **Must be constructed with isPrimeFast.**
  
 ===Part 3: Longest Common Sub-sequence=== ===Part 3: Longest Common Sub-sequence===
cs330_f2016/labx.txt ยท Last modified: 2016/06/21 15:33 by dcostello