+ 2
Hello..i need a c++ code to find a prime number in 5x5 array and put the results in new array
5 Respuestas
+ 2
https://code.sololearn.com/ctTj4YuZJ026/#cpp
There is only one problem. As per my program, 1 is a prime number(which is not). But otherwise it works fine. You can add a small condition like ignore 1 in the main function itself. As of now , by adding single line comments the program is understandable, so i recommend you to go through it. Thanks and sorry for the delay
+ 2
I have the code but the problem is there is something wrong with it. Once i get it right for sure i will send it to you. Sorry from my side
+ 1
Nice work... Thanks for help RR2001😄😄
0
Are you saying you want something that goes from
{###P#
#####
#P###
#####
###P#}
to
{PPP}?
0
RR2001 Thank you so much🙂