login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A355643 Numbers k having a divisor d such that d+k/d is prime. 2
1, 2, 4, 6, 10, 12, 16, 18, 22, 24, 28, 30, 34, 36, 40, 42, 46, 48, 52, 54, 58, 60, 66, 70, 72, 76, 78, 82, 84, 88, 90, 96, 100, 102, 106, 108, 112, 114, 118, 120, 126, 130, 132, 136, 138, 142, 148, 150, 154, 156, 160, 162, 166, 168, 172, 174, 178, 180, 184, 186, 190, 192, 196, 198, 202, 204, 208 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,2
COMMENTS
All terms > 2 are congruent to 0 or 4 (mod 6).
LINKS
EXAMPLE
a(10) = 24 is a term because 24 = 3*8 with 3+8 = 11 prime.
MAPLE
filter:= proc(n) local F, t;
F:= select(t -> t^2 <=n, numtheory:-divisors(n));
ormap(isprime, map(t -> t+n/t, F))
end proc:
select(filter, [$1..300]);
MATHEMATICA
q[n_] := AnyTrue[Divisors[n], PrimeQ[# + n/#] &]; Select[Range[200], q] (* Amiram Eldar, Jul 11 2022 *)
PROG
(PARI) isok(k) = fordiv(k, d, if (isprime(d+k/d), return(1))); \\ Michel Marcus, Jul 11 2022
(Python)
from sympy import divisors, isprime
def ok(n): return any(isprime(d+n//d) for d in divisors(n, generator=True))
print([k for k in range(1, 210) if ok(k)]) # Michael S. Branicky, Jul 11 2022
CROSSREFS
Contains A006093.
Cf. A355644.
Sequence in context: A248614 A105965 A229489 * A107304 A082417 A161842
KEYWORD
nonn
AUTHOR
J. M. Bergot and Robert Israel, Jul 11 2022
STATUS
approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified July 14 03:51 EDT 2024. Contains 374291 sequences. (Running on oeis4.)