Closed odd closed 1 year ago
By switching to using a scala.collection.mutable.BitSet instead of an scala.collection.mutable.ArrayBuffer for storing the primes (as is done in the Java variant) the performance can be improved.
scala.collection.mutable.BitSet
scala.collection.mutable.ArrayBuffer
By switching to using a
scala.collection.mutable.BitSet
instead of anscala.collection.mutable.ArrayBuffer
for storing the primes (as is done in the Java variant) the performance can be improved.