Search:

Type: Posts; User: vin_320

Search: Search took 0.01 seconds.

  1. Replies
    41
    Views
    6,793

    the correct answer will be : # include...

    the correct answer will be :


    # include <stdio.h>

    int main(void)
    {
    int x;
    int i;
    int isprime;
  2. Replies
    41
    Views
    6,793

    why its wrong ? i have calculated by hand and...

    why its wrong ?

    i have calculated by hand and it gives the correct answer

    below 10 it gives 17
    below 15 it gives 41

    and when i run the program it gives 1324301603
  3. Replies
    41
    Views
    6,793

    finally i got the right answer : # include...

    finally i got the right answer :


    # include <stdio.h>

    int main(void)
    {
    int x;
    int i;
    int isprime;
  4. Replies
    41
    Views
    6,793

    of course i have tried it but i was getting wrong...

    of course i have tried it but i was getting wrong result :frown:

    however, i post it because i need someone to correct me
  5. Replies
    41
    Views
    6,793

    so it will be something like this :

    so it will be something like this :
  6. Replies
    41
    Views
    6,793

    there is too much info. i dont know what to use ...

    there is too much info. i dont know what to use
    and i need to finish as fast as possible
  7. Replies
    41
    Views
    6,793

    i don't know my brain will explode now >

    i don't know my brain will explode now ><"

    i tried it but i got wrong also ><


    # include <stdio.h>

    // function declration

    int isPrime(int x);
  8. Replies
    41
    Views
    6,793

    for (i=2;i

    for (i=2;i<=10;i++) // i'm testing the prime numbers which less than 10
    for (x=2;x<=10;x++)
    if (i%2!=0)
    if(i%x==0)
  9. Replies
    41
    Views
    6,793

    like i said: prime number can is dividable by...

    like i said:

    prime number can is dividable by one and itself


    correct me if i'm wrong plz
  10. Replies
    41
    Views
    6,793

    okay , i need loop to check it whether it's prime...

    okay , i need loop to check it whether it's prime or not

    prime number can is dividable by one and itself

    so i think i should use loop

    for (i=2;i<=10;i++) // i'm testing the prime numbers...
  11. Replies
    41
    Views
    6,793

    what condition i have to use to check if the...

    what condition i have to use to check if the numbers prime or not ?
  12. Replies
    41
    Views
    6,793

    can you explain them in more details plz?

    can you explain them in more details plz?
  13. Replies
    41
    Views
    6,793

    of course, i have googled it but i can't...

    of course, i have googled it but i can't understand it
    yeah i know what prime number is by hand

    and this was my last try :


    # include <stdio.h>
    int main(void)
    {
    int x;
  14. Replies
    41
    Views
    6,793

    my problem is how to determine a number is prime...

    my problem is how to determine a number is prime or not ><
  15. Replies
    41
    Views
    6,793

    sum of prime numbers

    hi :o

    i have to calculate the sum of prime numbers below 500,000

    someone help me plz:frown:
Results 1 to 15 of 15