Thread: Need help, cant find mistake in my code

  1. #1
    Registered User
    Join Date
    Nov 2019
    Posts
    1

    Need help, cant find mistake in my code

    Hello, i would like to ask you for help.
    I did program which decomposing numbers into prime numbers. Everything works but if i have input for example 500 random numbers its slower then it should.
    In one part of my task i get a lot of primes (500) and my program doesnt check it in time.
    Any suggestions how to make it faster? ( it has to work for other inputs like number 991350783547)

    Thx for help.

    Code : https://github.com/Elfkam/Elf/blob/master/Primes

  2. #2
    Registered User
    Join Date
    Feb 2019
    Posts
    1,078
    Take a look at this thread.

  3. #3
    Registered User
    Join Date
    May 2010
    Posts
    4,632
    Or maybe this one even, or this one maybe?
    Last edited by jimblumberg; 11-01-2019 at 12:54 PM.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. can`t find mistake in this code
    By AidenK in forum C Programming
    Replies: 4
    Last Post: 05-25-2016, 12:59 PM
  2. Cant find my mistake on the code(matrix multiplication)
    By Paulo Esperon in forum C Programming
    Replies: 3
    Last Post: 02-23-2016, 09:11 PM
  3. Find my mistake!
    By kacey in forum C Programming
    Replies: 4
    Last Post: 02-03-2011, 03:10 AM
  4. Find my mistake!
    By kacey in forum C Programming
    Replies: 2
    Last Post: 02-02-2011, 08:36 PM
  5. Can not find my mistake in this code?
    By BLG in forum C Programming
    Replies: 2
    Last Post: 09-04-2009, 04:19 PM

Tags for this Thread