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++

Запитати АІ

expand

Запитати АІ

ChatGPT

Запитайте про що завгодно або спробуйте одне із запропонованих запитань, щоб почати наш чат

some-alt