Skip to content

Commit

Permalink
Attempt p3 in fortran (5)
Browse files Browse the repository at this point in the history
  • Loading branch information
LivInTheLookingGlass committed Oct 4, 2024
1 parent 4ca1aa5 commit c38d1ea
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions fortran/src/include/primes.f90
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ subroutine prime_factor(num, factor)
factor = num
else
factor = 2
call expand_sieve(int(sqrt(num), i18t) + 1)
do while (factor <= num)
if (mod(num, factor) == 0) then
num = num / factor
Expand Down

0 comments on commit c38d1ea

Please sign in to comment.