← All problemsSign in

Bi-Composite numbers

A bi-composite number is a number that has at least two distinct prime factors. The first few bi-composite numbers are: 6, 10, 12, 14, 15, 18, 20, 21, . . . . Using the generator in EQ1 (or otherwise) write a program that reads in a positive integer _n_ and generates the _n_$^{th}$ bi-composite number. ###Input: - The value of $n$ ###Output: The _n_$^{th}$ bi-composite number ###C

HINT LADDERno hints yet
L1 Observation
L2 Technique
L3 Approach
L4 Pseudo-code
🔒
L5 Full solution
L5 unlocks only if you insist twice
solution.cppC++17

CodeSearch Tutor

Hints, not spoilers — it won’t hand over the full solution unless you insist.

voice by Sarvam AI

Sign in to chat with the tutor and save your progress.

Sign in to start