OFFSET
1,1
COMMENTS
An ISO date is in the format YYYY-MM-DD.
The last term of this sequence is 99991207.
LINKS
Christian Perfect, Table of n, a(n) for n = 1..24974
EXAMPLE
20150821 belongs to this sequence because it is prime and represents the 21st of August 2015.
MATHEMATICA
d = Sort@ Join[Flatten[Plus[{100, 300, 500, 700, 800, 1000, 1200}, #] & /@ Select[Range[1, 31, 2], ! Mod[#, 5] == 0 &]], Flatten[Plus[{200, 400, 600, 900, 1100}, #] & /@ Select[Range[1, 29, 2], ! Mod[#, 5] == 0 &]]]; Select[Flatten[Plus[If[Or[Mod[#, 10000000] == 0, Mod[#, 40000] == 0 && ! Mod[#, 1000000] == 0], d, Delete[d, 25]], #] & /@ (10000 Range[1000, 1001])], PrimeQ] (* Michael De Vlieger, Aug 04 2015 *)
PROG
(Python)
import datetime
.
def prime_number_days():
...j = 0
...date = datetime.date(1000, 1, 1)
...while date.year<2100:
......x = int(date.strftime("%Y%m%d"))
......while primes[j]<x:
.........j += 1
......if primes[j]==x:
.........yield x
......date += datetime.timedelta(days=1)
CROSSREFS
KEYWORD
nonn,easy,fini,base
AUTHOR
Christian Perfect, Aug 04 2015
STATUS
approved