Number of the beast!

From CodeCodex

Implementations[edit]

Java[edit]

public class Gates {
  static final String beast = "BillGates";

  public static void main(String args[]) {
   char[] temp = beast.toUpperCase().toCharArray();
   int k = 0;
   for (int i = 0; i < temp.length; i++) {
     k += temp[i];
     System.out.println(temp[i]);
   }
   // Since it's really "Bill Gates III"
   System.out.println(k + 1 + 1 + 1);
   // output : 666 :-)
   }
}