Jump to content

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

m
(add FreeBASIC)
Line 324:
}
constlet max = 15
print("The first \(max) terms of the sequence are:")
var (i, next) = (1, 1)
while next <= max {
if next == countDivisors(i) {
print("\(i) ", terminator =: "")
next += 1
}
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.