For my birthday I got a humidifier and a de-humidifier... I put them in the same room and let them fight it out. - Stephen Wright
Yes, yesterday was my 24th birthday, and yes, I’m getting old. To celebrate, I was taken out to lunch at Heider baba by work colleagues, (off course I got to choose the place) and we discussed google’s hiring and the following program on prime numbers. Andrea initiated the event, Mini brought me balloons and Reza, Mhel and Scott covered my food, so that was some good treat.
int _tmain(int argc, _TCHAR* argv[])
{
int StartTime, EndTime;
long long PrimeNumber=3, TestNumber=3, TestingFactor;
long long CounterVariable, NumberCount=1;
bool IsPrime = true;
struct __timeb64 tstruct;
while(1)
{
_ftime64( &tstruct );
StartTime=tstruct.time;
TestingFactor = ceil(sqrt((long double)TestNumber));
for (CounterVariable=3; CounterVariable<=TestingFactor; CounterVariable+=2)
{
if (TestNumber%CounterVariable == 0)
{
IsPrime = false;
break; // not a prime number
}
}
if (CounterVariable>=TestingFactor && IsPrime != false)
{
printf("%d:\tPrime Number:", NumberCount);
printf("%d\n", TestNumber);
NumberCount++;
_ftime64( &tstruct );
EndTime=tstruct.time;
//printf("\tTime Taken: %d\n",EndTime-StartTime);
}
TestNumber+=2;
IsPrime=true;
}
return 0;
}
Later after work, Lorry took me out to Olive Garden for dinner for my all time favorite shrimp primavera and then we opened gifts. I got a cool Birthday card from Ken, Krikorian movie money from Eric and gift card from Cathy and Larry. Lorry bought me clothes, a mug, bear and a really cool clock with a birthday card J
I also get a very good gift from Scott Mitchell, well, its on my birthday so I regard it as a gift. He referenced me in his article Decompiling .NET Assemblies in the following words.
A more detailed look into code obfuscation can be found in Adnan Masood's article: Intellectual Property Protection and Code Obfuscation.
Those who know Scott Mitchell would know its high praise.