Ulam spiral (for primes): Difference between revisions

Content added Content deleted
Line 3,390: Line 3,390:
<lang Pascal>
<lang Pascal>
PROGRAM Ulam.pas;
PROGRAM Ulam.pas;

{$IFDEF FPC}
{$IFDEF FPC}
{$mode objfpc}{$H+}{$J-}{R+}
{$mode objfpc}{$H+}{$J-}{R+}
Line 3,395: Line 3,396:
{$APPTYPE CONSOLE}
{$APPTYPE CONSOLE}
{$ENDIF}
{$ENDIF}

USES
(*)
Free Pascal Compiler version 3.2.0 [2020/06/14] for x86_64
The free and readable alternative at C/C++ speeds
compiles natively to almost any platform, including raspberry PI *
(*)

USES
Crt,
Crt,
SysUtils ;
SysUtils ;