In case I get errors from the following indices: 1, 2, 3, 5, 7, 11, 13, 17, 19, 23

How can I resubmit them?

Reading the qsub man page, it seems I cannot cherry-pick the indices but must input a range.

-J <range> [%<max subjobs>]
Makes this job an array job. Sets job's array
attribute to True.
Use the range argument to specify the indices of
the subjobs of the array. range is specified in
the form X-Y[:Z] where X is the first index, Y is
the upper bound on the indices, and Z is the step‐
ping factor. For example, 2-7:2 will produce
indices of 2, 4, and 6. If Z is not specified, it
is taken to be 1. Indices must be greater than or
equal to zero.
Use the optional %max subjobs argument to set a
limit on the number of subjobs that can be running
at one time. This sets the value of the
max_run_subjobs job attribute to the specified
maximum.
Job arrays are always rerunnable.