Write a function to find all primes p and non-negative integers k that solve the equation
p! + ap = k^2
where a is an integer. If there are no solutions for a given value of a, return p = [] and k = [].

Solution Stats

29 Solutions

10 Solvers

Last Solution submitted on Feb 02, 2026

Last 200 Solutions

Problem Comments

Solution Comments

Show comments
Loading...