Sequence: smallest number greater than previous term with exactly n divisors: Difference between revisions

Content added Content deleted
Line 233: Line 233:
while next <= max {
while next <= max {
if next == countDivisors(i) {
if next == countDivisors(i) {
print("\(i) ", terminator: "")
print("\(i) ", terminator = "")
next += 1
next += 1
}
}