Implemented code to find prime numbers upto any number n