OFFSET
1,1
COMMENTS
Digital clock dice integers. The number of values with 3 digits is 180. The number of values with 4 digits is 60. The number of values with 5 digits is 5400. The number of values with 6 digits is 1800. The total number of values is 7440, to the maximum 125656 equated to "12:56:56." Prime values must end with one of {11, 13, 21, 23, 31, 33, 41, 43, 51, 53}. The number of prime values with 3 digits is 23. The number of prime values with 4 digits is 6, namely 1123, 1151, 1153, 1213, 1223, 1231. Prime values with 5 digits begin 11113, 11131, 11213, 11243, 11251, 11257.
LINKS
Nathaniel Johnston, Table of n, a(n) for n = 1..7440 (full sequence)
FORMULA
A057436 INTERSECTION {integers that can appear on a 12-hour digital clock, concatenated from either hours:minutes or hours:minutes:seconds}.
EXAMPLE
"151" equated to "1:51"; "123456" equated to "12:34:56".
MAPLE
c:=0: for h from 0 to 12 do for m from 0 to 59 do for s from 0 to 59 do t:=10000*h+100*m+s: d:=convert(t, base, 10): if(t>100 and (h>0 or m<=12) and numboccur(d, 0)=0 and numboccur(d, 7)=0 and numboccur(d, 8)=0 and numboccur(d, 9)=0)then printf("%d, ", t): c:=c+1: fi: od: if(c>=80)then break: fi: od: od: # Nathaniel Johnston, May 17 2011
MATHEMATICA
FromDigits/@Flatten[Table[{h, m1, m2}, {h, 6}, {m1, 5}, {m2, 6}], 2] (* Harvey P. Dale, Mar 13 2023 *)
CROSSREFS
KEYWORD
easy,fini,full,nonn,base,less,dumb
AUTHOR
Jonathan Vos Post, Jan 05 2008
EXTENSIONS
Comments corrected by Nathaniel Johnston, May 17 2011
STATUS
approved