08-28-2017, 02:21 PM
Challenge is to write a fast User RPL programme to reproduce this series:
ie for input N returns Nth element of the sequence.
https://oeis.org/A014261
which begins
1, 3, 5, 7, 9, 11, 13, 15, 17, 19, 31, 33, 35, 37, 39, 51, 53, 55, 57, 59, 71, 73, 75, 77, 79, 91, 93, 95, 97, 99, 111, 113, 115, 117, 119, 131, 133, 135, 137, 139, 151, 153, 155, 157, 159, 171, 173, 175, 177, 179, 191, 193, 195, 197, 199, 311
so you can imagine how it continues.
The smaller the programme the better, but irrelevant for judgment of best programme, except in the case of a tie in speed.
ie for input N returns Nth element of the sequence.
https://oeis.org/A014261
which begins
1, 3, 5, 7, 9, 11, 13, 15, 17, 19, 31, 33, 35, 37, 39, 51, 53, 55, 57, 59, 71, 73, 75, 77, 79, 91, 93, 95, 97, 99, 111, 113, 115, 117, 119, 131, 133, 135, 137, 139, 151, 153, 155, 157, 159, 171, 173, 175, 177, 179, 191, 193, 195, 197, 199, 311
so you can imagine how it continues.
The smaller the programme the better, but irrelevant for judgment of best programme, except in the case of a tie in speed.