Composite numbers k with no single digit factors whose factors are all substrings of k: Difference between revisions
Composite numbers k with no single digit factors whose factors are all substrings of k (view source)
Revision as of 14:19, 23 November 2023
, 6 months ago→{{header|EasyLang}}
Line 342:
=={{header|EasyLang}}==
{{trans|C}} (optimized)
<syntaxhighlight>
fastfunc
while n > 0
if
if
.
else
if
n =
.
.
if
return 1
.
Line 366:
return 0
.
fastfunc
if n mod 2 = 0 or n mod 3 = 0 or n mod 5 = 0 or n mod 7 = 0
return 0
.
if rest mod fact = 0
.
if
return 0
.
.
if
return 0
.
.
if
return 1
.
Line 394:
.
n = 11
while
if
print n
.
n += 2
|