At the first time, I make a function to generate all prime between 1-50000. I think if i remake my code like that, it will increase the process.
In my real code it's written like this
long bil_prima[10000]={
2, 3, 5, 7, 11, 13, 17, 19,..., 49853, 49871, 49877, 49891, 49919, 49921, 49927, 49937, 49939, 49943, 49957, 49991, 49993, 49999};
... = prime number too.
I think it will br too long write it all here.
And thanx for your advice. I can't believe that the first rank reply my post. So glad.
And I'm sorry if my posting has to many error. I'm not sufficient enough in English.