Sum of two adjacent numbers are primes: Difference between revisions

→‎{{header|Action!}}: Use formatted output
(Added Action!)
(→‎{{header|Action!}}: Use formatted output)
Line 35:
IF primes( n + n1 ) THEN
count ==+ 1
PrintC2PrintF( "%2U: %2U + %2U = %2U%E", count, n, n1, n + n1 )
Print( ": " )
PrintC2( n )
Print( " + " )
PrintC2( n1 )
Print( " = " )
PrintC2( n + n1 )
PutE()
FI
OD
3,038

edits