Skip to content

Comments

Reduced the time complexity of Prime Number Code program#174

Open
ReddiRani8496 wants to merge 1 commit intorahul22mrk:mainfrom
ReddiRani8496:OptimizedPrimeNumberCode
Open

Reduced the time complexity of Prime Number Code program#174
ReddiRani8496 wants to merge 1 commit intorahul22mrk:mainfrom
ReddiRani8496:OptimizedPrimeNumberCode

Conversation

@ReddiRani8496
Copy link

Instead of dividing the number by 2. If we use square root it will reduce the time complexity, which is better than n/2.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant