Skip to content

Commit

Permalink
Merge pull request ambujraj#1336 from MAYANK-BHARDWAJ/patch-3
Browse files Browse the repository at this point in the history
Update prime_list.cpp
  • Loading branch information
ambujraj authored Nov 15, 2018
2 parents 74ee148 + cfaa6a0 commit 10dc868
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion prime/prime_list.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
void check_prime(int m)
{ int i,c;
c=0;
for(i=2; i<m;i++)
for(i=2; i*i<=m;i++)
{ if(m%i ==0)
{c=1;
break;
Expand Down

0 comments on commit 10dc868

Please sign in to comment.