id/email
password
forgot password | create account
about | help | code help+videos | done | prefs
CodingBat code practice

 

jebbert@volusia.k12.fl.us > mar11_2016_HL_primePro
prev  |  next  |  chance

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)

public boolean mar11_2016_HL_primePro(int num1, int num2) { }

Editor font size %:
Shorter output


Forget It! -- delete my code for this problem

Progress graphs:
 Your progress graph for this problem
 Random user progress graph for this problem
 Random Epic Progress Graph

Java Help

Misc Code Practice

Difficulty: 290

Copyright Nick Parlante 2017 - privacy