Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

Can /prog/ please comment on my code?

Name: Anonymous 2010-08-02 19:20


class prob3{
   
    static long BigBossPrimeOne;
   
    public static void primeFactor(long n){
    boolean prime = true;
    long n1=0;
    long n2=0;
    for(long i=2;(i<=(n/2))&&(prime!=false);i++)
        if ((n%i)==0){
        prime = false;
        n1=i;
        n2=n/i;   
        }   
    if ((prime==true)&&(n>BigBossPrimeOne))
        BigBossPrimeOne = n;
   
    if (prime==false){
        primeFactor(n1);
        primeFactor(n2);
        }            
    }

    public static void main(String args[]){
 
    primeFactor(600851475143L);
    System.out.println(BigBossPrimeOne);
    }

}


I'm just doing the Euler thing to pass the time and I thought why not post this on /prog/ for some insight.

Using the Java language.

Feel free to give me any advice.

Thanks!

Please don't mind the presentation. It's the first time using Emacs and I was under the clock (did this in 15 minutes).

Name: ghd hair 2010-08-30 23:45


You can go to the party with so beautiful hair style made by ghd straighteners.Besides that, there are also several styles to choose from within the ghd hair straightener tools, one is the ghd mk4.GHD can not only create smooth, sleek and curly hair but also enable you to straighten your hair and then gives it flips, curls or waves what you want. Make sure that you hold your hair firmly when straightening your hair so that GHD can distribute heat in an even fashion.Since hair straighteners,are based on heat technology, they may damage your hair if they are not used properly.
http://www.ghdhairsonsale.com

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List