- #1
Soff
- 36
- 0
Hello!
I got a problem:
I want to find out the first ten apocalyptical numbers.By definition, a number of the form 2^n that contains the digits 666 (i.e., the beast number) is called an apocalyptic number.
I tried to write a short program with mathematica:
l := Table[2^n, {n, 1, 1000}]
a := IntegerDigits[l]
Select[a, MatchQ[a, {6, 6, 6}], 10]
However, the result is always {}
What's wrong with the program above?
Can somebody give me an advice?
I got a problem:
I want to find out the first ten apocalyptical numbers.By definition, a number of the form 2^n that contains the digits 666 (i.e., the beast number) is called an apocalyptic number.
I tried to write a short program with mathematica:
l := Table[2^n, {n, 1, 1000}]
a := IntegerDigits[l]
Select[a, MatchQ[a, {6, 6, 6}], 10]
However, the result is always {}
What's wrong with the program above?
Can somebody give me an advice?