How to improve programming logical skills ?

I am not sure how relevant my post is in this context.

But if you want to shape up logic, try these teasers.

1.)Factorial of 100 and above.
2.)Prime numbers till 1000, then try to find primes till 100000000
3.)Sort 10 numbers in ascending, then try 100 then 1000 and then 1000000 numbers. from an array random numbers, shouldn’t take longer than few seconds.
4)Magic squares.
5)Sudoku
6)Knight travel.
7)8-Queens puzzle.
8)NIM
9)Tic-Tac-Toe
10)Minesweeper solver.

https://www.crazyengineers.com/threads/how-to-improve-programming-logic.44440/