Search:

Type: Posts; User: Valentas

Search: Search took 0.00 seconds.

  1. Replies
    1
    Views
    1,586

    Question about subtracting char number

    Hello,

    I spotted one piece of code where you as usual must indicate indice of an array to retrieve data. However, I saw some strange syntax.

    The array was like 10-15 elements long and contained...
  2. Replies
    3
    Views
    1,924

    The program should print numbers whose factors...

    The program should print numbers whose factors sum up to prime numbers. However, there is something wrong with int primes(n) function.

    I get into infinite loop and print statements show that p : 5...
  3. Replies
    3
    Views
    1,924

    Alex's exercise Chapter 6 Ex3

    /*Design a program that finds all numbers from 1 to 1000 whose prime factors, when added
    together, sum up to a prime number (for example, 12 has prime factors of 2, 2, and 3, which
    sum to 7, which...
Results 1 to 3 of 3