Search:

Type: Posts; User: EatMyBible

Search: Search took 0.09 seconds.

  1. Re: Arrays, BigInteger's and a bunch of for-loops. Welcome to a huge mess! [Do not view if you do not want any hints on Project Euler]

    I can finally report that I got it right. While working on a different problem, I saw how easy it was to scan through a sorted array. I did a bunch of stupid things with that code, using the...
  2. Re: Arrays, BigInteger's and a bunch of for-loops. Welcome to a huge mess! [Do not view if you do not want any hints on Project Euler]

    Only 0's when printing tabell[j]
  3. Re: Arrays, BigInteger's and a bunch of for-loops. Welcome to a huge mess! [Do not view if you do not want any hints on Project Euler]

    Thanks for the help, I got the big mistake fixed. I still don't get why all of the numbers are set to 0, though. Wouldn't the actions done by this code:



    for (int j = 0;j<9801;j++){
    for...
  4. Re: Arrays, BigInteger's and a bunch of for-loops. Welcome to a huge mess! [Do not view if you do not want any hints on Project Euler]

    Excellent question, I will check that...

    when running:



    for (int z = 0;z<9801;z++){
    if (tabell[z].equals("0"));
    teller++;
    }
  5. Arrays, BigInteger's and a bunch of for-loops. Welcome to a huge mess! [Do not view if you do not want any hints on Project Euler]

    Alright, I am currently working on Euler Problem 29. The problem may be found in its full length here:

    Problem 29 - Project Euler

    This is the code I was confident would solve the problem:


    ...
Results 1 to 5 of 5