progs/lecture3.scala
changeset 73 5e4696ebd8dc
parent 72 9d8b172f5337
child 77 3cbe3d90b77f
--- a/progs/lecture3.scala	Thu Nov 24 15:06:42 2016 +0000
+++ b/progs/lecture3.scala	Fri Nov 25 12:10:00 2016 +0000
@@ -292,6 +292,8 @@
 
 val primes: Stream[Int] = generatePrimes(Stream.from(2))
 
+primes.take(10).toList
+
 primes.filter(_ > 100).take(2000).toList
 
 time_needed(1, primes.filter(_ > 100).take(2000).toList)