Ulam spiral (for primes): Difference between revisions
m
→using FreePascal
Line 3,390:
<lang Pascal>
PROGRAM Ulam.pas;
{$IFDEF FPC}
{$mode objfpc}{$H+}{$J-}{R+}
Line 3,395 ⟶ 3,396:
{$APPTYPE CONSOLE}
{$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,
SysUtils ;
|