Skip to content
Onsite

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

Run checks the 3 visible tests, Submit all 10.