Chowla numbers: Difference between revisions

Content added Content deleted
imported>Wilm
(Added an example for an ancient Fortran incarnation involving simulated hardware)
imported>Wilm
m (added "translation from Ada)
Line 1,717: Line 1,717:
</pre>
</pre>
=={{header|Fortran}}==
=={{header|Fortran}}==
{{works with|VAX Fortran|V4.6-244}}
{{works with|VAX Fortran|V4.6-244}}{{libheader|VAX/VMS V4.6}}This compiler implements the Fortran-77 standard. The VAX/VMS operating system runs on simulated hardware using the open source [https://opensimh.org/ simh] platform.
{{libheader|VAX/VMS V4.6}}This compiler implements the Fortran-77 standard. The VAX/VMS operating system runs on simulated hardware using the open source [https://opensimh.org/ simh] platform.
{{trans|Ada}}

Run time on a Raspberry Pi 4 Model B Rev 1.1 (Raspbian GNU/Linux 10 buster) was 7h 21m
<syntaxhighlight lang="fortran" line="1">


Run time on a Raspberry Pi 4 Model B Rev 1.1 (Raspbian GNU/Linux 10 buster) was 7h 21m<syntaxhighlight lang="fortran" line="1">
PROGRAM CHOWLA
PROGRAM CHOWLA


Line 1,834: Line 1,838:


END
END
</syntaxhighlight>{{out}}<pre>
</syntaxhighlight>
{{out}}<pre>

CHOWLA( 1) = 0
CHOWLA( 1) = 0
CHOWLA( 2) = 0
CHOWLA( 2) = 0