Project Euler Problem 20
March 12th, 2008Almost as easy as problem 16:
#!/usr/bin/python
"""
projecteuler.net Problem 20
What is the sum of the digits of the number 100!
"""
def factorial(x): return(1 if x==0 else x * factorial(x-1))
num = factorial(100)
total=0
while num != 0:
total=total+num%10
num=num/10
print total
Project Euler Problem 16
March 12th, 2008Super easy:
#!/usr/bin/python
"""
projecteuler.net Problem 16
What is the sum of the digits of the number 2^1000
"""
num = 2**1000
total=0
while num != 0:
total=total+num%10
num=num/10
print total
Spirit of Knoxville
March 10th, 2008I seen a write up on arrl.org today about The Spirit of Knoxville transatlantic balloon project. I look forward to following the balloons project across the Atlantic. It seems like a very interesting project. I wonder if anyone is doing any sort of balloon launches in the area?
Dear Windows, It’s over.
February 27th, 2008Simply hilarious.
RoadRunner Hijacking Domain Typos
February 26th, 2008It has been reported several places around the ‘net that the RoadRunner ISP has been intercepting typeo’s in domain names and redirecting them to their own search page. This is similar to the Verisign Site Finder fiasco of a year or two ago four or five years ago. When will ISP’s learn that DNS affects more than just web browsing and that redirecting mistyped domain names to a custom search page is not a good idea. At least RoadRunner gives you the option to opt out of this service. Altho I would contest that a service such as this should be opt-in if it is offered at all.
Word Press Annoyances
February 25th, 2008I spent a couple of hours this evening trying to add some links to my “Blogroll” on my Word Press Blog. It turns out that Links are only displayed if they are assigned to a category. At any rate hopefully Google indexes this so some other poor sap doesn’t spend as much time as I did trying to do something so simple.
ARRL Field Day 2008
February 25th, 2008Call Sign Received
February 7th, 2008After passing my Technican and General Class amateur radio operator exams last week, I had been patiently checking the license database on ARRL.org to see if the FCC had assigned my call sign yet. Low and behold after this morning’s update:
Smith, Joshua L, KD8HRX (General)
PO BOX 28
Coal City, WV 25823
Licensee ID: L01366735
FRN: 0017273277
Issue Date: Feb 06, 2008
Expire Date: Feb 06, 2018
Date of last Change: Feb 06, 2008 (New Systematic Call Sign Assigned)
Yes they have my middle initial wrong, it should be C instead of L But it looks like my call sign has been assigned.
73,
KD8HRX
Solution to Project Euler Problem #6
February 4th, 2008Here is my solution to Project Euler Problem #6. I know I’m not solving these in order, I’m going through and picking the low hanging fruit.
#!/usr/bin/python
“”"
projecteuler.net Problem 6
find the differecne between the sum of
the squares and the square of the sum of
the first 100 natural numbers
“”"
sumOfSquares=0
squareOfSums=0
for i in range(1,101):
sumOfSquares=sumOfSquares+(i**2)
squareOfSums=squareOfSums+i
squareOfSums=squareOfSums**2
print squareOfSums-sumOfSquares

