Given a non-negative integer number n = 10. Process of generating Ludic numbers: Ludic = [1] Consider natural numbers from 2 to n = 10, i.e., 2, 3, 4, 5, 6, 7, 8, 9, 10. Delete every 2nd number because first number is 2, i.e., 3, 5, 7, 9. Ludic = [1, 2].  Delete every 3rd number because first number is 3, i.e., 5, 7. Ludic = [1, 2, 3]. The process terminates here since there are less than 5 elements left. The last two numbers are added to the final result. The output is [1, 2, 3, 5, 7]. Given a non-negative integer number n = 15. Process of generating Ludic numbers: Ludic = [1] Consider natural numbers from 2 to n = 15, i.e., 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15. Delete every 2nd number because first number is 2, i.e., 3, 5, 7, 9, 11, 13, 15. Ludic = [1, 2].  Delete every 3rd number because first number is 3, i.e., 5, 7, 11, 13 . Ludic = [1, 2, 3]. The process terminates here since there are less than 5 elements left. The last four numbers are added to the final result. The output is [1, 2, 3, 5, 7, 11, 13]. Given a non-negative integer number n = 5. Process of generating Ludic numbers: Ludic = [1] Consider natural numbers from 2 to n = 5, i.e., 2, 3, 4, 5. Delete every 2nd number because first number is 2, i.e., 3, 5. Ludic = [1, 2].  The process terminates here since there are less than 3 elements left. The last two numbers are added to the final result. The output is [1, 2, 3, 5].
[10] [15] [5]
[1, 2, 3, 5, 7] [1, 2, 3, 5, 7, 11, 13] [1, 2, 3, 5]