Primality by trial division: Difference between revisions
→{{header|XPL0}}: Fix bug. Intrinsic 'code' declarations are now automatic.
m (switched from a word ("two") --> '''2''' (for consistency).) |
(→{{header|XPL0}}: Fix bug. Intrinsic 'code' declarations are now automatic.) |
||
Line 4,117:
=={{header|XPL0}}==
<lang XPL0>
int N;
int I;
[if N <= 1 then return false;
for I:=
if rem(N/I) = 0 then return false;
return true;
];
int Num;
|