Write a function to find pairs of primes p and q satisfying the equation
where n is an integer. The function should take a number x as input and produce the triples p, q, and n such that
. If there are no solutions, the function should return three empty vectors.
Solution Stats
Problem Comments
Solution Comments
Show comments
Loading...
Problem Recent Solvers8
Suggested Problems
-
Project Euler: Problem 7, Nth prime
1780 Solvers
-
Rosenbrock's Banana Function and its derivatives
168 Solvers
-
We love vectorized solutions. Problem 1 : remove the row average.
896 Solvers
-
196 Solvers
-
Approximation of Pi (vector inputs)
285 Solvers
More from this Author329
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!