- Details
- Category: Blog
- By Stuart Mathews
- Hits: 2747
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”.

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.
- Details
- Category: Blog
- By Stuart Mathews
- Hits: 2534
- Details
- Category: Blog
- By Stuart Mathews
- Hits: 2488
I ran through the park at work today. It was nice, I don't usually run through the park because its a shorter journey but yesterday and today I’m getting really itchy legs and I think it might be the exhaust fumes. So I thought perhaps running through the park would make a difference. I read up about this and apparently it could be because when the blood vessels expand/contract during the first initial stages of exercises – this sensation sends ‘itchy’ signals to the brain. That’s not a good things because then no matter where I run, the Park or the sidewalk next to cars will not change this. The other possible reason is because the skin is dry – So' i’m going to rub some moisturiser just before I start exercise to see if it helps. Funnily enough however, is that this tends only to be a problem when I’m running home in the afternoon. Normally in the morning I’ve already done some non-running exercise so by the time I run, this problem is gone – which might mean thats its just the initial part of exercise that this happens – like i explained earlier with the itchy signals. I don’t really know for sure buts its darn annoying.
I enjoyed running through the park though, clear air and all.
I was thinking about walking into the office today because today is my ‘rest’ day however I usually just run anyway much like any other non-run-to-work day, but as soon as I considered it, I realised, man that it would take ages to get anywhere! Running is great because it gets you there quicker than walking. Sounds super obvious but I think I’d be more aware that I’m taking a long time to get ‘there’ than if I was running and running isn’t all that strenuous anymore. My body has become quite used to it, my ligaments and weight I think are all adapted to the running. So its almost easier for me just to run anyway than just walk. How strange.
I was in training yesterday and I was part of a group of 6 who needed to design something and it was chaos. Everyone wanted to get their views across and it was just a “view-fest” – everyone talking over each other desperate to get their ideas and thoughts out there. Thing was, they did get them out there and they just evaporated once they were out there. Reminds me how even at the very highest level of organisation, sometimes its better to just go away, think through something yourself and then discuss it with others once you’ve figured out stuff in your mind. Well, maybe that's just me but I think every other person in that room would have benefited from doing this themselves too. It makes me feel that trying to simulate ‘one’ brain from many is chaos. I think engineers work better like this anyway. Sometimes I wonder if its worth investing a convention to voice once opinions in much scenarios but everytime I think about it, I think it’ll never catch on. One day I’ll write down a method of how to organise chaos like this because its doable and there is a lot of ways to do it – just doesn’t seem to come naturally to anyone in a large group like yesterday.
And their you have it, Chaos, Itchy, Park.
More Articles …
Page 43 of 182