Skip to content

Commit

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

0 comments on commit 38e1682

Please sign in to comment.