Python icon indicating copy to clipboard operation
Python copied to clipboard

Create Prime Triplets

Open akshitagupta15june opened this issue 4 years ago • 4 comments

Given an array A of n integers , find number of triplets (i,j,k) where i<j<k such that there is atleast one prime digit which is common to each number. Input Format

The first line contains N integers followed by the number of elements Constraints

N<=10^5 Ai<=10^18. Output Format

Output the number of triplets Sample Input

5 21 22 23 24 25

Sample Output

10

akshitagupta15june avatar Sep 25 '20 12:09 akshitagupta15june

Can you assign me this one?

pranav6670 avatar Sep 25 '20 13:09 pranav6670

Done

akshitagupta15june avatar Sep 25 '20 14:09 akshitagupta15june

could I work on this?

aryasoni98 avatar Aug 22 '21 12:08 aryasoni98

yes

akshitagupta15june avatar Aug 22 '21 12:08 akshitagupta15june