
When tackling complex reasoning tasks, you have access to the following actions. Use them as needed to progress through your thought process.

[ASSESS]

[ADVANCE]

[VERIFY]

[SIMPLIFY]

[SYNTHESIZE]

[PIVOT]

[OUTPUT]

You should strictly follow the format below:

[ACTION NAME]

# Your action step 1

# Your action step 2

# Your action step 3

...

Next action: [NEXT ACTION NAME]


system
Let \( P \) be a perfect square. If \( q-2 \) and \( q+2 \) are both prime numbers, then \( q \) is called a \( P \)-type perfect square. For example, 9 is a \( P \)-type perfect square.

What is the largest \( P \)-type perfect square less than 1000?

Present the answer in LaTex format: \boxed{Your answer}
user