--- a/TAs Thu Nov 24 15:06:42 2016 +0000
+++ b/TAs Fri Nov 25 12:10:00 2016 +0000
@@ -5,12 +5,12 @@
fares.alaboud@kcl.ac.uk,
sara.boutamina@kcl.ac.uk,
mark.ormesher@kcl.ac.uk,
- clarence.ji@kcl.ac.uk,
- andrei.nae_-_stroie@kcl.ac.uk,
- alexander.hanbury-Botherway@kcl.ac.uk,
- rosen.dangov@kcl.ac.uk,
- diana.ghitun@kcl.ac.uk,
- andrei.juganaru@kcl.ac.uk,
+ clarence.ji@kcl.ac.uk
+ andrei.nae_-_stroie@kcl.ac.uk
+ alexander.hanbury-Botherway@kcl.ac.uk
+ rosen.dangov@kcl.ac.uk
+ diana.ghitun@kcl.ac.uk
+ andrei.juganaru@kcl.ac.uk
ainur.makhmet@kcl.ac.uk
--- 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)