Greatest prime dividing the n-th cubefree number: Difference between revisions
Content added Content deleted
(Created a new draft task and added a Wren solution.) |
(Slight modification.) |
||
Line 12: | Line 12: | ||
;Task |
;Task |
||
Compute and show on this page the first '''100''' terms of a[n]. |
Compute and show on this page the first '''100''' terms of a[n]. |
||
Also compute and show the '''10,000th''' and '''100,000th''' members of the sequence. |
Also compute and show the '''1,000''', '''10,000th''' and '''100,000th''' members of the sequence. |
||
Line 38: | Line 38: | ||
var i = 2 |
var i = 2 |
||
var lim1 = 100 |
var lim1 = 100 |
||
var lim2 = |
var lim2 = 1000 |
||
var max = |
var max = 1e7 |
||
while (count < max) { |
while (count < max) { |
||
var cubeFree = false |
var cubeFree = false |
||
Line 81: | Line 81: | ||
19 97 7 11 5 101 17 103 7 53 |
19 97 7 11 5 101 17 103 7 53 |
||
107 109 11 37 113 19 23 29 13 59 |
107 109 11 37 113 19 23 29 13 59 |
||
The 1,000th term of a[n] is 109. |
|||
The 10,000th term of a[n] is 101. |
The 10,000th term of a[n] is 101. |