I have a problem with my Fortran program that does nothing more than calculating a prime factorization (or should do). That\'s the error:
C:\\MinGW\\Fortran>
You're using the wrong notation for 'not equal to'. Fortran syntax is /= or .NE..
/=
.NE.
So you should be using:
if (prim(i) /= 0 .and. modulo(n, prim(i)) == 0) then
and
if (prim(i) /= 0) then
Furthermore, your syntax of integer(sqrt(real(m))) is incorrect, perhaps you mean NINT(sqrt(real(m)))?
integer(sqrt(real(m)))
NINT(sqrt(real(m)))