Prime numbers are interesting things, I’ve heard other say the same and I spent some of yesterday playing with them. I was trying to learn what the sum of different combinations of common numbers are and I notice a interesting pattern. Some consecutive numbers when they are added together produce prime numbers but not all of them. But all of them will be odd which is pretty cool. For example:

+1, 2=3

+2, 3=5

+3+4 =7

+4+5=9

5+6=11

6+7=13

7+8=15

8+9=17

So that's 3,5,7,9,11,13,15 so far. Now those are all odd numbers and most of them are prime numbers – 2,3,5,7,11,13 but not 15 and 17 is prime. Interesting. Consecutive numbers added together give a good change of coming up with prime numbers.I used to think incorrectly that all consecutive numbers were prime but in the case of 7+8=15, 15 aint no prime number baby!

I also did some reading about perl. I’m really enjoying perl. In fact perl has laready helped me at work. This is a simple program a wrote to strip all the newlines characters from a xml file so I can embed the XML file into a string and use that a test data:

while(<>) { chop; chomp; print }

I also updated my tablet to Windows 1603 which is not the latest version but its nearly there and I got my laptop up to the creators update(1703), Installed ActiveState Perl and started reading “Win32 Perl Programming: The Standard Extensions”.

Win32 Perl Programming: Standard Extensions, Second Edition

I’m not too sure that I’m really into this book right now and I’m trying to fight the urge of thinking that Perl is not really needed to automate things on Windows because we have PowerShell but I think its there is something to be said for it, especially the urge to write fun code which PowerShell is not. PowerShell is fine though. I’ll probably use Perl anyway because of my favourite reason: Because I can. I’d just like to use it. Powershell is just well not Perl though its undeniably THE scripting language for Windows environments.