PHƯỚC HƯNG OJ · THỬ THÁCH THUẬT TOÁN

#SP0000161. Các số siêu lũy thừa (The Super Powers)

HỌC THEO LỘ TRÌNH

Bài tập thuộc lộ trình

1 lộ trình

Các số siêu lũy thừa (The Super Powers)

The Super Powers

Source: UVa 11752 — https://onlinejudge.org/external/117/11752.pdf
Edition: Phuoc Hung OJ Extended; one dataset per program run. Subtasks are authored for PHOJ, not claimed to be official.

Problem

A positive integer is a super power if it can be expressed as a power of at least two distinct positive integer bases with exponents at least 22 (with 11 included as a special case by the original statement). List all such values in [1,264−1][1,2^{64}-1], increasing. The value 11 is included.

Input

There is no input.

Output

Print one super power per line, in increasing order. The ellipsis in the original sample is not part of the output.

Subtasks

  • Subtask 1 (100 points): No input; print the complete original list.

Example

First six output lines (illustration only)

1
16
64
81
256
512

Important: The full output has additional lines and must all be printed.

Explanation

The displayed six lines are only the first six lines. The required complete output has further lines.