Implemented algorithms for searching prime numbers <= N