<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/">
	<channel>
		<title>C code For Generating Key Numbers For The P3</title>
		<link>/blogentry/28309</link>
		<atom:link href="https://www.lotterypost.com/rss/blogcomments/28309" rel="self" type="application/rss+xml" />
		<description>jayemmar's Blog: C code For Generating Key Numbers For The P3</description>
		<dc:language>en-us</dc:language>
		<generator>Lottery Post RSS Generator</generator>
		<item>
			<title>Comment #7</title>
			<link>/blogentry/28309#c40366</link>
			<guid isPermaLink="true">/blogentry/28309#c40366</guid>
			<pubDate>Wed, 26 Aug 2009 21:10:57 GMT</pubDate>
			<dc:creator>jayemmar</dc:creator>
			<description><![CDATA[<p>That&#x27;swhat I meant also. I&#x27;m in the process of making improvements to mailBox100, so I&#x27;m not ready to release any code for it.</p>]]></description>
			<category>jayemmar</category>
		</item>
		<item>
			<title>Comment #6</title>
			<link>/blogentry/28309#c40359</link>
			<guid isPermaLink="true">/blogentry/28309#c40359</guid>
			<pubDate>Wed, 26 Aug 2009 20:37:13 GMT</pubDate>
			<dc:creator>LANTERN</dc:creator>
			<description><![CDATA[<p>Sorry I meant the source code for the MailBox100 program.</p>]]></description>
			<category>LANTERN</category>
		</item>
		<item>
			<title>Comment #5</title>
			<link>/blogentry/28309#c40357</link>
			<guid isPermaLink="true">/blogentry/28309#c40357</guid>
			<pubDate>Wed, 26 Aug 2009 20:35:22 GMT</pubDate>
			<dc:creator>LANTERN</dc:creator>
			<description><![CDATA[<p>I can&#x27;t get it to work, same as with the other program before, Can you please post the source code of the program?&#x3c;br /&#x3e;Thanks for any help</p>]]></description>
			<category>LANTERN</category>
		</item>
		<item>
			<title>Comment #4</title>
			<link>/blogentry/28309#c35024</link>
			<guid isPermaLink="true">/blogentry/28309#c35024</guid>
			<pubDate>Fri, 27 Mar 2009 12:39:48 GMT</pubDate>
			<dc:creator>gapeach7</dc:creator>
			<description><![CDATA[<p>Do I have to be a programmer to make this work?</p>]]></description>
			<category>gapeach7</category>
		</item>
		<item>
			<title>Comment #3</title>
			<link>/blogentry/28309#c34843</link>
			<guid isPermaLink="true">/blogentry/28309#c34843</guid>
			<pubDate>Sun, 22 Mar 2009 23:29:32 GMT</pubDate>
			<dc:creator>retxx</dc:creator>
			<description><![CDATA[<p>I have the same question. How about it in an excel spreadsheet insert. This is Japanese to me.Maybe someone can write it to excel.thanks</p>]]></description>
			<category>retxx</category>
		</item>
		<item>
			<title>Comment #2</title>
			<link>/blogentry/28309#c34759</link>
			<guid isPermaLink="true">/blogentry/28309#c34759</guid>
			<pubDate>Thu, 19 Mar 2009 22:55:46 GMT</pubDate>
			<dc:creator>twedk</dc:creator>
			<description><![CDATA[<p>do you have this in a excel formay for download ?</p>]]></description>
			<category>twedk</category>
		</item>
		<item>
			<title>Comment #1</title>
			<link>/blogentry/28309#c34752</link>
			<guid isPermaLink="true">/blogentry/28309#c34752</guid>
			<pubDate>Thu, 19 Mar 2009 20:08:27 GMT</pubDate>
			<dc:creator>diamondpalace</dc:creator>
			<description><![CDATA[<p>You know how I can do this on a MAC terminal?</p>]]></description>
			<category>diamondpalace</category>
		</item>
		<item>
			<title>Original Blog Entry: C code For Generating Key Numbers For The P3</title>
			<link>/blogentry/28309</link>
			<guid isPermaLink="true">/blogentry/28309</guid>
			<pubDate>Thu, 19 Mar 2009 19:06:38 GMT</pubDate>
			<dc:creator>jayemmar</dc:creator>
			<description><![CDATA[<p>Hello:<br /><br />A few members have asked me for the code I used to create keyNumberFinderP3.<br /><br />Todd suggested pasting it into a blog, and I&#x27;m going to do this here.<br /><br />First a few requirements:<br /><br />1. This code is ANSI C and should be compiled into a console executable.<br /><br />2. Copy the code, which starts below the asterisks, into your compiler&#x27;s editor and save as keyNumberFinderP3.c<br /><br />3. Once the code has been compiled into an executable move it to a working directory, where you&#x27;ll have to also create a text draw file consisting of 20 past draws. One draw on a line, no spaces or delimiters. Latest draw first and oldest draw last. This file should be called drawsP3.txt<br /><br />4. To run the program click on the keyNumberFinderP3.exe icon. You&#x27;ll see the results come up in a DOS window.<br /><br />5. keyNumberFinderP3.exe may generate more than one set of key numbers. In such a case, pick one set of 4 and stay with that set.<br /><br />6. Key numbers are only good for 5 days. After 5 days, update drawsP3.txt. Don&#x27;t worry about having more than 20 draws in the past draw file, the program only looks at the latest 20.<br /><br />Good luck and please share your results and methods.<br /><br />jayemmar<br /><br />*****************************************************************************<br /><br />#include math.h<br /><br />#include stdlib.h<br /><br />#include stdio.h<br /><br />int main()<br /><br />{<br /><br />int i, j, temp1, temp2, temp3, temp4, a1, a2, a3, a4, a;<br /><br />int drawCount, hit, results;<br /><br />FILE *in;<br /><br />int drawArray[20];<br /><br />int arrayOfFours[210] =<br /><br />{123,124,125,126,127,128,129,134,135,136,137,138,139,<br /><br />145,146,147,148,149,156,157,158,159,167,168,169,178,<br /><br />179,189,234,235,236,237,238,239,245,246,247,248,249,<br /><br />256,257,258,259,267,268,269,278,279,289,345,346,347,<br /><br />348,349,356,357,358,359,367,368,369,378,379,389,456,<br /><br />457,458,459,467,468,469,478,479,489,567,568,569,578,<br /><br />579,589,678,679,689,789,1234,1235,1236,1237,1238,1239,1245,<br /><br />1246,1247,1248,1249,1256,1257,1258,1259,1267,1268,1269,1278,1279,<br /><br />1289,1345,1346,1347,1348,1349,1356,1357,1358,1359,1367,1368,1369,<br /><br />1378,1379,1389,1456,1457,1458,1459,1467,1468,1469,1478,1479,1489,<br /><br />1567,1568,1569,1578,1579,1589,1678,1679,1689,1789,2345,2346,2347,<br /><br />2348,2349,2356,2357,2358,2359,2367,2368,2369,2378,2379,2389,2456,<br /><br />2457,2458,2459,2467,2468,2469,2478,2479,2489,2567,2568,2569,2578,<br /><br />2579,2589,2678,2679,2689,2789,3456,3457,3458,3459,3467,3468,3469,<br /><br />3478,3479,3489,3567,3568,3569,3578,3579,3589,3678,3679,3689,3789,<br /><br />4567,4568,4569,4578,4579,4589,4678,4679,4689,4789,5678,5679,5689,<br /><br />5789,6789};<br /><br />/*<br /><br />**Open files<br /><br />*/<br /><br />in = fopen( drawsP3.txt , r );<br /><br />if(in == NULL)<br /><br />{<br /><br />printf( error in opening drawsP3.txt\n );<br /><br />getch();<br /><br />exit(0);<br /><br />}<br /><br />/*<br /><br />** Get the past 20 draws into memory and then<br /><br />** loop through the first 20 draws and see if<br /><br />** there&#x27;s a key number set for these draws<br /><br />*/<br /><br />i = 0;<br /><br />while(!feof(in) i 20)<br /><br />{<br /><br />fscanf(in, %d , a);<br /><br />drawArray[i] = a;<br /><br />i++;<br /><br />drawCount++;<br /><br />}<br /><br />drawCount = i;<br /><br />results = 0;<br /><br />start:<br /><br />for(i = 0; i 210; i++)<br /><br />{ hit = 0;<br /><br />/*<br /><br />** Peel off the digits from the key number set<br /><br />*/<br /><br />temp1 = arrayOfFours[i]/1000;<br /><br />temp2 = (arrayOfFours[i] - 1000*temp1)/100;<br /><br />temp3= (arrayOfFours[i] - 1000*temp1 - 100*temp2)/10;<br /><br />temp4 = (arrayOfFours[i] - 1000*temp1 - 100*temp2 - 10*temp3);<br /><br />for(j = 0; j drawCount; j++)<br /><br />{<br /><br />/*<br /><br />** Peel off the digits from this draw<br /><br />*/<br /><br />a = drawArray[j];<br /><br />a1 = a/100;<br /><br />a2 = (a - 100*a1)/10;<br /><br />a3= (a - 100*a1 - 10*a2);<br /><br />/*<br /><br />** Check to see if at least one digit matches one<br /><br />** in the key set<br /><br />*/<br /><br />if((a1 == temp1 || a1 == temp2 || a1 == temp3 || a1 == temp4)<br /><br />||(a2 == temp1 || a2 == temp2 || a2 == temp3 || a2 == temp4)<br /><br />||(a3 == temp1 || a3 == temp2 || a3 == temp3 || a3 == temp4))<br /><br />{<br /><br />/*<br /><br />** Bump the match count when a match occurs<br /><br />*/<br /><br />hit++;<br /><br />}<br /><br />}<br /><br />/*<br /><br />** If the at least one number<br /><br />** in the key number set matched<br /><br />** for all draws, print out the key number set<br /><br />*/<br /><br />if(hit == drawCount)<br /><br />{<br /><br />printf( Key Number Set - %i-%i-%i-%i\n ,<br /><br />temp1, temp2, temp3, temp4);<br /><br />/*<br /><br />** Signal that a key number set was found<br /><br />*/<br /><br />results = 1;<br /><br />}<br /><br />}<br /><br />/*<br /><br />** If no key number set was found, drop the last draw<br /><br />** and search again<br /><br />*/<br /><br />if(results == 0)<br /><br />{<br /><br />drawCount = drawCount - 1;<br /><br />goto start;<br /><br />}<br /><br />/*<br /><br />** Tell the user how many reductions it took<br /><br />** to find a key number set.<br /><br />*/<br /><br />printf( Final draw count used to find key number set was %i\n , drawCount);<br /><br />printf( Enter any key to exit\n );<br /><br />getch();<br /><br />close(in);<br /><br />}<br /><br />... &#x5b;&#xa0;<a href="/blogentry/28309">More</a>&#xa0;&#x5d;</p>]]></description>
			<category>Blog Entry</category>
			<category>jayemmar</category>
			<wfw:comment>https://www.lotterypost.com/blogentry/28309</wfw:comment>
		</item>
	</channel>
</rss>

