Question: PLEASE SOLVE THIS Ques - 03 A sphenic number is a positive integer that is the product of three distinct prime numbers. For example, 30
PLEASE SOLVE THIS
Ques - 03 A sphenic number is a positive integer that is the product of three distinct prime numbers. For example, 30 = 2*3*5 Given a number, first check if it is a sphenic number; if so return those primes. If not return false. Input: [ 30, 32, 230] Output: [ [2,3,5], False, [2,5,23] ] def ques_03 (arr): return # run this cell to check your output. Don't modify this cell Input= [ 30, 32, 230] Output= [ [2,3,5), False, [2,5,23] ] ques_03(Input)==Output # run this cell to check your output. Don't modify this cell Input= [ 222, 434, 969, 1311] Output= [ [2,3,37], [2,7,31], [3,17,19], [3,19,23] ] ques_03(Input)==Output # run this cell to check your output. Don't modify this cell Input- [ 22, 43] Output= [ False, False ] ques_03 (Input)-=Output
Step by Step Solution
There are 3 Steps involved in it
To solve the problem well implement the ques03 function to determine if a given number is a sphenic ... View full answer
Get step-by-step solutions from verified subject matter experts
