OFFSET
1,1
COMMENTS
Note on terminology: We adopt the shorthand 'semiperfect prime' to denote a prime whose successor is semiperfect. This term is not intended to imply that the prime p itself satisfies the semiperfect property, which is impossible for primes.
Semiperfect primes that can be represented as the sum of some subset of the divisors of p + 1 are A391003.
MAPLE
select(n -> isprime(n) and isA005835(n+1), [seq(2..444)]);
MATHEMATICA
pseudoPerfectQ[n_] := Module[{divs = Most[Divisors[n]]}, MemberQ[Total/@Subsets[ divs, Length[ divs]], n]]; Select[Prime[Range[70]], pseudoPerfectQ[#+1]&] (* James C. McMahon, Nov 26 2025 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Peter Luschny, Nov 26 2025
STATUS
approved
