Problem 60401. Find primes and integers that solve an equation

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

66.67% Correct | 33.33% Incorrect
Last Solution submitted on Jun 16, 2024

Problem Comments

Solution Comments

Show comments

Problem Recent Solvers6

Suggested Problems

More from this Author265

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!