โ† Robert Bosch questions

Check Prime at Even Indices in an Array

Filed under Robert Bosch

The question

Write a program to input N elements in an array and check whether the element present at an even index is prime or not; print those elements if yes, else print -1.

No write-up yet. Related questions below have one.

Related Robert Bosch questions

Collected from public candidate posts and coding forums. Updated Nov 2026.