Forum Replies Created
Viewing 1 post (of 1 total)
- AuthorPosts
- bankkungParticipant
Hello my community,
I am new to this forum & want to solve a project question.Ave tried my best but it is not executing, shows 8 errors. I am trying to find the prime numbers between 1 -7000.The sub intervals that holds themost prime numbers and printing a histogram.
C12345678910111213141516171819202122232425#include<stdio.h>#include<conio.h>void main(){int num = 0;prime_num(num);}{for(int i=0;i<=7000;i++){for(int j=2; j <= 7000;j++){if( i != j && 1 != j){return 0;break;}if(num%1 == num){if (isprime){printf("Prime:", i);}return 1;} - AuthorPosts
Viewing 1 post (of 1 total)