Error
  • JHTMLicon not supported. File not found.
  • JHTMLicon not supported. File not found.
  • JHTMLicon not supported. File not found.
  • JHTMLicon not supported. File not found.
  • JHTMLicon not supported. File not found.
  • JHTMLicon not supported. File not found.
  • JHTMLicon not supported. File not found.
  • JHTMLicon not supported. File not found.
  • JHTMLicon not supported. File not found.
  • JHTMLicon not supported. File not found.
  • JHTMLicon not supported. File not found.
  • JHTMLicon not supported. File not found.
  • JHTMLicon not supported. File not found.
  • JHTMLicon not supported. File not found.
  • JHTMLicon not supported. File not found.

high

Sprint Will Give You a Discount on Your Next Phone if You Please, Please, Don't Leave [Sprint]
Wednesday, 01 February 2012 23:20
Sprints seems to be having a bit of trouble keeping its customers from jumping ship to AT&T or Verizon. The carrier is apparently so anxious to hold on to those it deems "at a high risk of leaving" that it's offering them up to $100 off their next phone upgrade. More »


Read more: http://feeds.gawker.com/~r/gizmodo/full/~3/7UkB2JNVJAI/sprint-will-give-you-a-discount-on-your-next-phone-if-you-dont-bail

 
Android-Themed Manga Comic Breaks Down the Drama [Android]
Monday, 02 January 2012 10:00
The world of Android is complicated. One company hates another, some are secretly sharing beds... my God, it's just like high school! Well, a Manga arteeest took that concept and ran with it: welcome to Sweet Android High School. More »


Read more: http://feeds.gawker.com/~r/gizmodo/full/~3/YYRT_DTePi8/android+themed-manga-comic-breaks-down-the-drama

 
The Punch That Gets Your Whole Party 'faced [Happy Hour]
Saturday, 31 December 2011 16:00
You've spent all your money on Christmas presents, and you're tired of spending time in the kitchen, but you're throwing a New Year's party and you need strong, delicious punch in high quantity to ensure everyone gets their swerve on. What to do? Skipper. Good God, Skipper. More »


Read more: http://feeds.gawker.com/~r/gizmodo/full/~3/6gVOe89wp2s/the-punch-that-gets-your-whole-party-faced

 
Prob 3
Friday, 14 October 2011 18:41

import java.math.*;
import java.util.*;

public class Prob3{
public static void main(String[] argsv){
System.out.println("The largest prime factor of the number 600851475143 is " + greatestFac(primeFactors(600851475143l)));
}

private static ArrayList primeFactors(Long n){
ArrayList facs = new ArrayList();
long prime = 2;
while(((double)n/(double)prime) != 1.0){
if(n % prime == 0){
n = n / prime;
facs.add(prime);
prime = 1;
}
prime = nextPrime(prime);
}
facs.add(prime);
return facs;
}

private static long greatestFac(ArrayList list){
long high = list.get(0);
for(int i = 1; i < list.size(); i++){
if(list.get(i) > high) high = list.get(i);
}
return high;
}


// Find the next prime number after n (n + 1)
private static long nextPrime(long n){
n++; // remove if implementation details change (pass n + 1)
while(!isPrime(n)){
n++;
}
return n;
}

private static boolean isPrime(long n){
long limit = (long) Math.sqrt(n);
for(long i = 2; i <= limit; i++){
if(n % i == 0){
return false;
}
}
return true;
}

} // end class Prob3

Read more: http://feeds.dzone.com/~r/dzone/snippets/~3/IgzOSHaWGaI/13703

 
Top Stories: Friday, June 24, 2011 [Total Recap]
Friday, 24 June 2011 20:00

Don't Look Down | A collection of very high perspectives.

More »


Read more: http://feeds.gawker.com/~r/gizmodo/full/~3/X5KsZJN9qHE/top-stories-friday-june-24-2011

 
Start
Prev
1


Page 1 of 2
Taxonomy by Zaragoza Online