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}} |
|||
{{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}} |
|||
⚫ | |||
<syntaxhighlight lang="fortran" line="1"> |
|||
⚫ | |||
PROGRAM CHOWLA |
PROGRAM CHOWLA |
||
Line 1,834: | Line 1,838: | ||
END |
END |
||
</syntaxhighlight |
</syntaxhighlight> |
||
{{out}}<pre> |
|||
CHOWLA( 1) = 0 |
CHOWLA( 1) = 0 |
||
CHOWLA( 2) = 0 |
CHOWLA( 2) = 0 |