did not look so in detail with the index stories and the algin, but perhaps a few comments:
The static variable is "false" and unnecessary. (use two "Sieves of Aritosthenes" simultaneously…) The upper limit can be determined using the array. What values are contained in the data structure (also the zero?), must be specified, see below showContent .
The variables ( ar g 1 , arg2 , arg3 ) should bear meaningful names, at least not misleading. arg1 eg is not an argument.
showContent with the special treatment of zero contains a part of the "logic". You should ask if this part should be reserved.
In the main function, the last comment is strange. Simply enter a variable (with meaningful name, see above) and make every call in a single line. Then it doesn't need the comment.
PS:
In the task it is not described that you give back something.
Hello,
did not look so in detail with the index stories and the algin, but perhaps a few comments:
PS:
Have fun