# Greetings from The On-Line Encyclopedia of Integer Sequences! http://oeis.org/ Search: id:a140775 Showing 1-1 of 1 %I A140775 #21 Mar 06 2024 04:47:45 %S A140775 2,6,10,22,30,34,42,58,70,78,82,102,118,130,142,190,202,210,214,274, %T A140775 298,310,322,330,358,382,394,442,454,462,478,510,538,562,582,610,622, %U A140775 658,694,714,730,742,790,838,862,922,930,970,1002,1038,1042,1110,1138,1198 %N A140775 Numbers k > 1 such that p + k/p is prime for every prime p that divides k. %C A140775 All terms of this sequence are even and squarefree. %C A140775 The only term == 2 (mod 3) is 2. - _Robert Israel_, Jan 09 2024 %H A140775 Harvey P. Dale, Table of n, a(n) for n = 1..1000 %e A140775 The primes dividing 70 are 2, 5, 7. Now, 2 + 70/2 = 37; 5 + 70/5 = 19; 7 + 70/7 = 17. Since 37, 19 and 17 are each prime, then 70 is included in this sequence. %p A140775 filter:= t -> andmap(p -> isprime(p+t/p), numtheory:-factorset(t)): %p A140775 select(filter, [seq(i,i=2..2000,4)]); # _Robert Israel_, Jan 09 2024 %t A140775 fQ[n_] := Block[{p = First@ Transpose@ FactorInteger@ n}, Union@ PrimeQ[p + n/p] == {True}]; Select[ Range[2, 1221], fQ@# &] (* _Robert G. Wilson v_, May 30 2008 *) %t A140775 pnpQ[n_]:=AllTrue[#+n/#&/@Transpose[FactorInteger[n]][[1]],PrimeQ]; Select[ Range[2,1200],pnpQ] (* The program uses the AllTrue function from Mathematica version 10 *) (* _Harvey P. Dale_, Apr 15 2016 *) %Y A140775 Cf. A140776, A140777, A294925. %K A140775 nonn %O A140775 1,1 %A A140775 _Leroy Quet_, May 29 2008 %E A140775 More terms from _Robert G. Wilson v_, May 30 2008 %E A140775 Definition edited by _Robert Israel_, Jan 09 2024 # Content is available under The OEIS End-User License Agreement: http://oeis.org/LICENSE