Google posted this a week ago on a street banner:
{ First 10 digit prime in consecutive digits of e }.com
If you take e's digits you get something like this:
7182818284590452353602874713526624977572470936999595749669676277240766303535475945713821785251664274274663919320030599218174135966290435729003342952605956307381323286279434907632338298807531952510190115738341879307021540891499348841675092447614606680822648001684774118537423454424371075390777449920695517027618386062613313845830007520449338265602976067371132007093287091274437470472306969772093101416928368190255151086574637721112523897844250569536967707854499699679468644549059879316368892300987931277361782154249992295763514822082698951936680331825288693984964651058209392398294887933203625094431...
One has to find the first sequence in e's digits which is also a prime.
The solution to this is: http://7427466391.com
There you have a web page stating this:
f(1)= 7182818284f(2)= 8182845904f(3)= 8747135266f(4)= 7427466391f(5)= __________
Question is how to find f(5), which is also the password for http://www.linux.org?
If you look at the numbers for long enough you will find that they all sum up to 49. The second observation is that the numbers all belong to e's digits. Third observation is, that numbers are 10 digits long.
So the task is to find a fifth 10-digit sequence in e's digits with the sum of 49.
This solves it using brute force:
using System; public class GoogleSolver{ public static void Main() { string strE = "71828182845904523536028747135266249775"; strE+= "724709369995957496696762772407663035354759457"; strE+= "138217852516642742746639193200305992181741359"; strE+= "662904357290033429526059563073813232862794349"; strE+= "076323382988075319525101901157383418793070215"; strE+= "408914993488416750924476146066808226480016847"; strE+= "741185374234544243710753907774499206955170276"; strE+= "183860626133138458300075204493382656029760673"; strE+= "711320070932870912744374704723069697720931014"; strE+= "169283681902551510865746377211125238978442505"; strE+= "695369677078544996996794686445490598793163688"; strE+= "923009879312773617821542499922957635148220826"; strE+= "989519366803318252886939849646510582093923982"; strE+= "94887933203625094431"; for (int intI = 0; intI < strE.Length - 10; intI++) { if (sumString(strE.Substring(intI, 10)) == 49) Console.WriteLine(strE.Substring(intI, 10)); } Console.ReadLine(); } public static int sumString(string strSumThis) { int intSum = 0; for (int intI = 0; intI < strSumThis.Length; intI++) { intSum = intSum + Convert.ToInt32(strSumThis.Substring(intI, 1)); } return intSum; }}
using System;
public class GoogleSolver{ public static void Main() { string strE = "71828182845904523536028747135266249775"; strE+= "724709369995957496696762772407663035354759457"; strE+= "138217852516642742746639193200305992181741359"; strE+= "662904357290033429526059563073813232862794349"; strE+= "076323382988075319525101901157383418793070215"; strE+= "408914993488416750924476146066808226480016847"; strE+= "741185374234544243710753907774499206955170276"; strE+= "183860626133138458300075204493382656029760673"; strE+= "711320070932870912744374704723069697720931014"; strE+= "169283681902551510865746377211125238978442505"; strE+= "695369677078544996996794686445490598793163688"; strE+= "923009879312773617821542499922957635148220826"; strE+= "989519366803318252886939849646510582093923982"; strE+= "94887933203625094431";
for (int intI = 0; intI < strE.Length - 10; intI++) { if (sumString(strE.Substring(intI, 10)) == 49) Console.WriteLine(strE.Substring(intI, 10)); } Console.ReadLine(); }
public static int sumString(string strSumThis) { int intSum = 0; for (int intI = 0; intI < strSumThis.Length; intI++) { intSum = intSum + Convert.ToInt32(strSumThis.Substring(intI, 1)); } return intSum; }}
Go to http://www.linux.org and apply for Google Labs.
Remember Me
The opinions expressed herein are my own personal opinions and do not represent my company's view in any way.
My views often change.
This blog is just a collection of bytes.
Copyright © 2003-2024Matevž Gačnik
E-mail