Ad
  • Default User Avatar

    I still havn't solved this one yet so please take what I say with a grain of salt

    But the issue I had using 6k+1 is that it doesn't always give you prime numbers. For instance
    k = 4
    (6*4 + 1) = 25
    25 isn't a prime number

  • Custom User Avatar

    hi guys , i just want to know why no one used the solution that works with numbers of format ( 6k-1 , 6k+1) or (6k+1 , 6k+5 ) becuase this probleme of finding if a number is prime or not is constently reapearing everywhere ,so i want to know what is the fastest solution ?