about | help | code help+videos | done | prefs |
Write a method that accepts two positive integer input parameters, 'num1' and 'num2'. Return 'true' if the product of 'num1' and 'num2' is a prime number. Return false otherwise. I have intentionally used the same test data a bunch of times so you could not see the other test data. Please THINK about what test data meets these requirements and what the result should be. This would be a good time to write some sample test data on paper and think about it. mar11_2016_HL_primePro(4, 5) → false mar11_2016_HL_primePro(4, 5) → false mar11_2016_HL_primePro(4, 5) → false ...Save, Compile, Run (ctrl-enter) |
Progress graphs:
Your progress graph for this problem
Random user progress graph for this problem
Random Epic Progress Graph
Difficulty: 290
Copyright Nick Parlante 2017 - privacy