OFFSET
1,1
FORMULA
a(n) = 576n log n + O(n^0.955), since primes = 2519 mod 2520 are all in this sequence, and almost all (in the sense of natural density) terms of this sequence are of that form. - Charles R Greathouse IV, Sep 06 2022
EXAMPLE
167 is a member as 168 is divisible by 1, 6 and 7.
PROG
(Python)
from sympy import isprime
def ok(n): return all((n+1)%int(d) == 0 for d in set(str(n)) - {"0"}) and isprime(n)
print([k for k in range(2222) if ok(k)]) # Michael S. Branicky, Sep 06 2022
CROSSREFS
KEYWORD
base,nonn
AUTHOR
Amarnath Murthy, Apr 04 2003
EXTENSIONS
More terms from Antonio G. Astudillo (afg_astudillo(AT)lycos.com), Apr 06 2003
Added "nonzero" to definition following a comment by Harvey Dale. - N. J. A. Sloane, Jan 08 2011.
STATUS
approved