Skip to content

Commit

Permalink
Update util.c
Browse files Browse the repository at this point in the history
  • Loading branch information
recp committed Aug 6, 2022
1 parent a709ac6 commit 2df4d72
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/util.c
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ ds_prime_num(int32_t min) {

/* find closest prime */
again:
for(min++, i = 2; i <= min / 2; ++i) {
for(min++, i = 2; i <= (min >> 1); ++i) {
if(min % i == 0)
goto again;
}
Expand Down

0 comments on commit 2df4d72

Please sign in to comment.