please help me with a program that enables one to print out all prime numbers between 10- 1000 and print their sum in java | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

please help me with a program that enables one to print out all prime numbers between 10- 1000 and print their sum in java

java

15th Jun 2018, 12:01 PM
Iwuanyanwu Fredrick
Iwuanyanwu Fredrick - avatar
9 Answers
+ 3
NIk01 Hi there! You should know that most of the time on the forum we try not to write codes for others if they haven't tried. The main reason being that no one learns if someone else is doing the work for him or her. Also, you never know, you might be doing the person's homework for him or her too. And that is not the point either.
15th Jun 2018, 2:24 PM
cyk
cyk - avatar
+ 2
Can you show us what you have so far? I mean tour code so far. It will be a good starting point
15th Jun 2018, 12:12 PM
cyk
cyk - avatar
+ 2
He can indeed. And I believe people who just wants codes should go get them elsewhere. This forum is not about that and I believe that we should always make that clear.
15th Jun 2018, 2:38 PM
cyk
cyk - avatar
+ 2
The difference is that when it comes to codes we do not like to write them for others. But we do like to help the person fix his mistakes or improve the code he has written himself. We believe that writing codes for someone else when the person has not tried yet keeps the person from learning.
19th Jun 2018, 1:11 AM
cyk
cyk - avatar
+ 1
you’re right partly, but what prevents him from doing google research ?
15th Jun 2018, 2:34 PM
Sokrat_Poghosyan
Sokrat_Poghosyan - avatar
+ 1
he can just find code examples from other sources.
15th Jun 2018, 2:35 PM
Sokrat_Poghosyan
Sokrat_Poghosyan - avatar
15th Jun 2018, 2:19 PM
Sokrat_Poghosyan
Sokrat_Poghosyan - avatar
0
what the difference between going to google and asking the question here. I believe they are all sort of research
19th Jun 2018, 1:09 AM
Iwuanyanwu Fredrick
Iwuanyanwu Fredrick - avatar
0
oh. now I get. thanks very much
8th Jul 2018, 10:23 AM
Iwuanyanwu Fredrick
Iwuanyanwu Fredrick - avatar