Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
Priyangshuyogi committed Dec 29, 2017
1 parent 3f8bd12 commit 73ace60
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,4 @@ as (6k + i) for some integer k and for i = ?1, 0, 1, 2, 3, or 4; 2 divides (6k
(6k + 3). So a more efficient method is to test if n is divisible by 2 or 3, then to check through all the numbers of
form 6k ± 1.

Time complexity of this solution is O(√n).
Time complexity of this solution is O(root(n)).

0 comments on commit 73ace60

Please sign in to comment.