Forbidden numbers: Difference between revisions
Content added Content deleted
m (→{{header|Python}}: <=) |
|||
Line 52: | Line 52: | ||
for fbmax in [500, 5000, 50_000, 500_000]: |
for fbmax in [500, 5000, 50_000, 500_000]: |
||
print( |
print( |
||
f'\nThere are {sum(x < fbmax for x in f500k):,} forbidden numbers <= {fbmax:,}.') |
f'\nThere are {sum(x <= fbmax for x in f500k):,} forbidden numbers <= {fbmax:,}.') |
||
</syntaxhighlight>{{out}} |
</syntaxhighlight>{{out}} |
||
<pre> |
<pre> |