Truncatable primes: Difference between revisions
m
→{{header|Bracmat}} Corrected typo
(Added Bracmat example) |
|||
Line 158:
=={{header|Bracmat}}==
Primality test: In an attempt to compute the result of taking a (not too big, 2^32 or 2^64, depending on word size) number to a fractional power, Bracmat computes the prime factors of the number and checks whether the powers of prime factors make the fractional
<lang bracmat>( 1000001:?i
& whl
|