Select the figure from among the given options that can replace the question mark (?) in the following series.

Show answer & explanation
Correct answer: D
Explanation
The correct answer is option 4
.
The logic used here is:
The no of triangles inside the square is increasing consecutively in the form of prime numbers starting from 2.
The series of figures:
