Odd squarefree semiprimes: Difference between revisions
m
→{{header|Scala}}
(→{{header|Ruby}}: Add Ruby) |
|||
Line 1,169:
}
def semiPrimes(limit: Int): Seq[Int] = { // odd
def iter(primeList: Seq[Int], acc: Seq[Int]): Seq[Int] = {
val (start, primeList1) = (primeList.head, primeList.tail)
|