Problem 53094. Easy Sequences 51: Positive Gaussian Primes
Solution Stats
Problem Comments
-
2 Comments
I have a solution that works and the entire test suite can run in 18 seconds on my laptop, but takes a little over 45 seconds to run on the server, so the server times out on the test cases.
I'm stumped trying to figure out how I can optimize this code any further.
I just re-ran the solution and this time it worked. I must have gotten a slow core the first time I ran it. ;-)
Problem Recent Solvers3
Suggested Problems
-
11313 Solvers
-
Least common multiple of many numbers
199 Solvers
-
Reverse the Words (not letters) of a String
330 Solvers
-
How many trades represent all the profit?
557 Solvers
-
Calculate the Hamming distance between two strings
212 Solvers
More from this Author66
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!