Two Prime Numbers Check
EasyP3Coding
Given two integers a and b, return true if both are prime numbers, otherwise false.
Example 1
- Input
- a = 3, b = 7
- Output
- true
Example 2
- Input
- a = 2, b = 4
- Output
- false
Example 3
- Input
- a = 1, b = 1
- Output
- false
Constraints
- 0 <= a, b <= 10^9
Hints
Give it a real attempt first. Run shows which examples fail.
Saved automatically
Run checks the 3 visible tests, Submit all 10. ⌘Enter runs, ⌘⇧Enter submits.