I used the registered version of the Simply Fortran compiler, here: simplyfortran-3.0.msi, simplyfortran-2.35.msi; also, try the online Fortran compiler.
PROGRAM Primes
IMPLICIT NONE
! declare integers
INTEGER :: Range, OptimusPrime, Divisor
! declare strings
CHARACTER(LEN = 15) :: strLine1
! set string
strLine1 = 'Prime numbers: '
! display string
PRINT *, strLine1
PRINT *, " "
! set range value
Range = 100
! evaluate for prime number
DO OptimusPrime = 3, Range, 2
Divisor = 3
DO
! not prime
IF (Divisor*Divisor > OptimusPrime .OR. MOD(OptimusPrime,Divisor) == 0) EXIT
Divisor = Divisor + 2
END DO
IF (Divisor*Divisor > OptimusPrime) THEN
! display prime
PRINT *, OptimusPrime
END IF
END DO
READ(*,*)
! end program
END PROGRAM Primes
Output
Notes
Learn more, Fortran language
https://pinetools.com/syntax-highlighter
Types of Variables
Integer: It can hold only integer values.
Real: It stores the floating point numbers.
Complex: It is used for storing complex numbers.
Logical: It stores logical Boolean values.
Character: It stores characters or strings.