STATUS
proposed
approved
proposed
approved
editing
proposed
return k # Chai Wah Wu, Mar 28 2021
(Python)
from sympy import isprime, gcd, composite
def A113496(n):
m = composite(n)
k = m+1
while gcd(k, m) != 1 or isprime(k):
k += 1
return k # Chai Wah Wu, Mar 28 2021
approved
editing
reviewed
approved
proposed
reviewed
editing
proposed
Composite[n_Integer] := FixedPoint[n + PrimePi[ # ] + 1 &, n + PrimePi[n] + 1]; f[n_] := Block[{k = n + 1}, While[PrimeQ@k || GCD[k, n] > 1, k++ ]; k]; Array[ f[ Composite[ # ]] &, 70] (* Robert G. Wilson v , Jan 12 2006 *)
approved
editing
Leroy Quet , Jan 11 2006
_Leroy Quet _ Jan 11 2006