Skip to content

Commit

Permalink
Update prime-subtraction-operation.py
Browse files Browse the repository at this point in the history
  • Loading branch information
kamyu104 authored Mar 26, 2023
1 parent 9d4c12d commit e66c38f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Python/prime-subtraction-operation.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
import bisect


# number theory, greedy
# number theory, greedy, binary search
def linear_sieve_of_eratosthenes(n):
primes = []
spf = [-1]*(n+1) # the smallest prime factor
Expand Down

0 comments on commit e66c38f

Please sign in to comment.