Anonymous user
Sequence: smallest number greater than previous term with exactly n divisors: Difference between revisions
Sequence: smallest number greater than previous term with exactly n divisors (view source)
Revision as of 13:09, 27 April 2021
, 3 years ago→{{header|Dyalect}}
(add FreeBASIC) |
|||
Line 324:
}
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
}
|