Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.

book
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

main.cpp

C++

Vraag AI

expand

Vraag AI

ChatGPT

Vraag wat u wilt of probeer een van de voorgestelde vragen om onze chat te starten.

some-alt