T-prime number
We know that prime numbers are positive integers that have exactly two distinct positive divisors. Similarly, we define a positive integer t as a T-prime if it has exactly three distinct positive divisors.
Given an array of positive integers, return an array of True or False for each integer if it T-prime
Example 1
Input:
[4, 5, 6]
Output:
[True, False, False]
main.cpp
C++
Kysy tekoälyä
Kysy tekoälyä
Kysy mitä tahansa tai kokeile jotakin ehdotetuista kysymyksistä aloittaaksesi keskustelumme