<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; color: rgb(0, 0, 0); font-size: 14px; font-family: Calibri, sans-serif;">
<div>Hi Fellow Coders,</div>
<div><br>
</div>
<div>Is anyone willing to share an algorithm or two for any of the sorting methods…</div>
<div><br>
</div>
<div>Stephen</div>
<div><br>
</div>
<span id="OLK_SRC_BODY_SECTION">
<div style="font-family:Calibri; font-size:11pt; text-align:left; color:black; BORDER-BOTTOM: medium none; BORDER-LEFT: medium none; PADDING-BOTTOM: 0in; PADDING-LEFT: 0in; PADDING-RIGHT: 0in; BORDER-TOP: #b5c4df 1pt solid; BORDER-RIGHT: medium none; PADDING-TOP: 3pt">
<span style="font-weight:bold">From: </span>Kevork KROZIAN &lt;<a href="mailto:kkrozian@ringwoodsc.vic.edu.au">kkrozian@ringwoodsc.vic.edu.au</a>&gt;<br>
<span style="font-weight:bold">Reply-To: </span>Year 12 Software Development Teachers' Mailing List &lt;<a href="mailto:sofdev@edulists.com.au">sofdev@edulists.com.au</a>&gt;<br>
<span style="font-weight:bold">Date: </span>Wednesday, April 30, 2014 at 12:55 PM<br>
<span style="font-weight:bold">To: </span>Year 12 Software Development Teachers' Mailing List &lt;<a href="mailto:sofdev@edulists.com.au">sofdev@edulists.com.au</a>&gt;<br>
<span style="font-weight:bold">Subject: </span>Re: [Year 12 SofDev] Programming Help<br>
</div>
<div><br>
</div>
<div><style>
<!--
@font-face
        {font-family:"Cambria Math"}
@font-face
        {font-family:Calibri}
@font-face
        {font-family:Tahoma}
@font-face
        {font-family:Consolas}
@font-face
        {font-family:NimbusRomNo9L-Regu}
@font-face
        {font-family:CMMI10}
@font-face
        {font-family:CMR10}
@font-face
        {font-family:CMSY10}
@font-face
        {font-family:NimbusMonL-Regu}
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif"}
a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline}
a:visited, span.MsoHyperlinkFollowed
        {color:purple;
        text-decoration:underline}
p
        {margin-right:0cm;
        margin-left:0cm;
        font-size:12.0pt;
        font-family:"Times New Roman","serif"}
p.MsoAcetate, li.MsoAcetate, div.MsoAcetate
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:8.0pt;
        font-family:"Tahoma","sans-serif"}
span.BalloonTextChar
        {font-family:"Tahoma","sans-serif"}
p.msochpdefault, li.msochpdefault, div.msochpdefault
        {margin-right:0cm;
        margin-left:0cm;
        font-size:10.0pt;
        font-family:"Times New Roman","serif"}
span.balloontextchar0
        {font-family:"Tahoma","sans-serif"}
span.emailstyle20
        {font-family:"Calibri","sans-serif";
        color:windowtext}
span.emailstyle21
        {font-family:"Calibri","sans-serif";
        color:#1F497D}
span.emailstyle22
        {font-family:"Calibri","sans-serif";
        color:#1F497D}
span.emailstyle23
        {font-family:"Calibri","sans-serif";
        color:#1F497D}
span.emailstyle24
        {font-family:"Calibri","sans-serif";
        color:#1F497D}
span.EmailStyle28
        {font-family:"Calibri","sans-serif";
        color:#1F497D}
span.EmailStyle29
        {font-family:"Calibri","sans-serif";
        color:#1F497D}
.MsoChpDefault
        {font-size:10.0pt}
@page WordSection1
        {margin:72.0pt 72.0pt 72.0pt 72.0pt}
div.WordSection1
        {}
-->
</style>
<div lang="EN-AU" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal"><span style="color:#1F497D">Hi Folks,</span></p>
<p class="MsoNormal"><span style="color:#1F497D">&nbsp;</span></p>
<p class="MsoNormal"><span style="color:#1F497D">&nbsp; I know VB is the overwhelming language of choice for SD teachers. &nbsp;Whilst we have some resources for VB.NET programming at
<a href="http://www.edulists.com.au/sofdev/index.htm">http://www.edulists.com.au/sofdev/index.htm</a> , wouldn’t it be wonderful if we could get perhaps a graduated set of worksheets/lessons/tasks that could be shared by others especially those who are struggling
 and would love some help ?</span></p>
<p class="MsoNormal"><span style="color:#1F497D">&nbsp;</span></p>
<p class="MsoNormal"><span style="color:#1F497D">I am more the PHP, Java, C# type of person and don’t have a ready made set of tasks to pass on in VB , but since around 90% of teachers do choose VB, perhaps some could help to make Victoria’s and others’ lives
 a little more manageable when faced with something as challenging as a new Yr 12 course and no programming practice for many years.
</span></p>
<p class="MsoNormal"><span style="color:#1F497D">&nbsp;</span></p>
<p class="MsoNormal"><span style="color:#1F497D">Kind Regards</span></p>
<p class="MsoNormal"><span style="color:#1F497D">&nbsp;</span></p>
<p class="MsoNormal"><span style="color:#1F497D">&nbsp;</span></p>
<div>
<p class="MsoNormal"><span style="color:#1F497D">Kevork Krozian</span></p>
<p class="MsoNormal"><span style="color:#1F497D">IT Pathways Manager</span></p>
<p class="MsoNormal"><span style="color:#1F497D">Ringwood Trade Training Facility
</span></p>
<p class="MsoNormal"><span style="color:#1F497D">Tel: 0419 356 034</span><span style="color:#1F497D"></span></p>
</div>
<p class="MsoNormal"><span style="color:#1F497D">&nbsp;</span></p>
<div>
<div style="border:none; border-top:solid #E1E1E1 1.0pt; padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal"><b><span lang="EN-US">From:</span></b><span lang="EN-US"> <a href="mailto:sofdev-bounces@edulists.com.au">
sofdev-bounces@edulists.com.au</a> [<a href="mailto:sofdev-bounces@edulists.com.au">mailto:sofdev-bounces@edulists.com.au</a>]
<b>On Behalf Of </b>Howard, David<br>
<b>Sent:</b> Wednesday, 30 April 2014 11:16 AM<br>
<b>To:</b> Year 12 Software Development Teachers' Mailing List<br>
<b>Subject:</b> Re: [Year 12 SofDev] Programming Help</span></p>
</div>
</div>
<p class="MsoNormal">&nbsp;</p>
<div>
<div>
<div>
<p class="MsoNormal"><span style="font-size:10.5pt; color:black">There are great courses on Codecademy and Lynda.com</span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:10.5pt; color:black">&nbsp;</span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:10.5pt; color:black">&nbsp;</span></p>
</div>
<div>
<table class="MsoNormalTable" border="0" cellspacing="0" cellpadding="0" width="540" style="width:405.0pt; background:white">
<tbody>
<tr>
<td style="border:none; border-bottom:solid #C50C1E 1.0pt; padding:.75pt .75pt .75pt .75pt">
<p class="MsoNormal"><strong><span style="font-size: 10pt; font-family: Arial, sans-serif; color: rgb(2, 67, 125);">David Howard</span></strong><span style="font-size: 10pt; font-family: Arial, sans-serif; color: rgb(2, 67, 125);"><br>
</span><span style="font-size: 8.5pt; font-family: Arial, sans-serif; color: rgb(197, 12, 30);">Head of Learning Systems</span><span style="font-size: 9pt; font-family: Arial, sans-serif; color: black;"></span></p>
</td>
<td nowrap="" style="border:none; border-bottom:solid #C50C1E 1.0pt; padding:.75pt .75pt .75pt .75pt">
<p class="MsoNormal" align="right" style="text-align:right"><span style="font-size: 9pt; font-family: Arial, sans-serif; color: black;"><a href="http://twitter.com/StMichaelsGS"><span style="color:navy; text-decoration:none"><img border="0" id="_x0000_i1025" src="https://services.stmichaels.vic.edu.au/community/icons/Icon_Twitter.png"></span></a>&nbsp;&nbsp;<a href="https://services.stmichaels.vic.edu.au/fb.cfm"><span style="color:navy; text-decoration:none"><img border="0" id="_x0000_i1026" src="https://services.stmichaels.vic.edu.au/community/icons/Icon_FB.png"></span></a>&nbsp;&nbsp;<a href="https://www.linkedin.com/company/st-michael%27s-grammar-school"><span style="color:navy; text-decoration:none"><img border="0" id="_x0000_i1027" src="https://services.stmichaels.vic.edu.au/community/icons/Icon_LinkedIn.png"></span></a></span></p>
</td>
</tr>
<tr>
<td valign="top" style="padding:.75pt .75pt .75pt .75pt">
<p class="MsoNormal"><strong><span style="font-size: 7.5pt; font-family: Arial, sans-serif; color: rgb(2, 67, 125);">25 Chapel Street, St Kilda VIC 3182 Australia</span></strong><span style="font-size: 9pt; font-family: Arial, sans-serif; color: black;"></span></p>
</td>
<td rowspan="2" valign="top" style="padding:.75pt .75pt .75pt .75pt">
<p class="MsoNormal" align="right" style="text-align:right"><span style="font-size:9.0pt; font-family:&quot;Arial&quot;,&quot;sans-serif&quot;; color:black"><a href="https://www.stmichaels.vic.edu.au/"><span style="color:navy; text-decoration:none"><img border="0" width="113" height="75" id="_x0000_i1028" src="https://services.stmichaels.vic.edu.au/community/logo/SMGS_Logo_tall_100_2013_96d.png"></span></a></span></p>
</td>
</tr>
<tr>
<td valign="top" style="padding:.75pt .75pt .75pt .75pt">
<table class="MsoNormalTable" border="0" cellspacing="0" cellpadding="0" width="353" style="width:264.75pt">
<tbody>
<tr>
<td width="13" nowrap="" style="width:9.75pt; padding:.75pt .75pt .75pt .75pt">
<p class="MsoNormal"><strong><span style="font-size: 7.5pt; font-family: Calibri, sans-serif; color: rgb(2, 67, 125);">t</span></strong><span style="font-size: 7.5pt; font-family: 'Times New Roman', serif; color: rgb(2, 67, 125);"></span></p>
</td>
<td nowrap="" style="padding:.75pt .75pt .75pt .75pt">
<p class="MsoNormal"><span style="font-size:7.5pt; color:#02437D">&#43;61 3 8530 3272&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span></p>
</td>
<td nowrap="" style="padding:.75pt .75pt .75pt .75pt">
<p class="MsoNormal"><strong><span style="font-size: 7.5pt; font-family: Calibri, sans-serif; color: rgb(2, 67, 125);">e</span></strong><span style="font-size:7.5pt; color:#02437D">&nbsp;&nbsp;&nbsp;&nbsp;</span></p>
</td>
<td nowrap="" style="padding:.75pt .75pt .75pt .75pt">
<p class="MsoNormal"><span style="font-size:7.5pt; color:#02437D"><a href="mailto:dhoward@stmichaels.vic.edu.au"><span style="color:#02437D; text-decoration:none">dhoward@stmichaels.vic.edu.au</span></a></span></p>
</td>
</tr>
<tr>
<td nowrap="" style="padding:.75pt .75pt .75pt .75pt">
<p class="MsoNormal"><strong><span style="font-size: 7.5pt; font-family: Calibri, sans-serif; color: rgb(2, 67, 125);">f</span></strong><span style="font-size:7.5pt; color:#02437D"></span></p>
</td>
<td nowrap="" style="padding:.75pt .75pt .75pt .75pt">
<p class="MsoNormal"><span style="font-size:7.5pt; color:#02437D">&#43;61 3 9510 3161</span></p>
</td>
<td nowrap="" style="padding:.75pt .75pt .75pt .75pt">
<p class="MsoNormal"><strong><span style="font-size: 7.5pt; font-family: Calibri, sans-serif; color: rgb(2, 67, 125);">w</span></strong><span style="font-size:7.5pt; color:#02437D"></span></p>
</td>
<td nowrap="" style="padding:.75pt .75pt .75pt .75pt">
<p class="MsoNormal"><span style="font-size:7.5pt; color:#02437D"><a href="https://www.stmichaels.vic.edu.au/"><span style="color:#02437D; text-decoration:none">stmichaels.vic.edu.au</span></a></span></p>
</td>
</tr>
</tbody>
</table>
</td>
</tr>
<tr>
<td colspan="2" style="padding:.75pt .75pt .75pt .75pt">
<p class="MsoNormal"><span style="font-size: 6.5pt; font-family: Arial, sans-serif; color: rgb(2, 67, 125);">CRICOS Provider 00345G</span><span style="font-size: 9pt; font-family: Arial, sans-serif; color: black;"></span></p>
</td>
</tr>
<tr>
<td colspan="2" style="padding:.75pt .75pt .75pt .75pt">
<p class="MsoNormal"><span style="font-size: 6.5pt; font-family: Arial, sans-serif; color: rgb(2, 67, 125);">Please consider the environment before printing this email</span><span style="font-size: 9pt; font-family: Arial, sans-serif; color: black;"></span></p>
</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
<div>
<p class="MsoNormal"><span style="font-size:10.5pt; color:black">&nbsp;</span></p>
</div>
<div style="border:none; border-top:solid #B5C4DF 1.0pt; padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal"><b><span style="color:black">From: </span></b><span style="color:black">Victoria Farrell &lt;<a href="mailto:FarrellV@humegrammar.vic.edu.au">FarrellV@humegrammar.vic.edu.au</a>&gt;<br>
<b>Reply-To: </b>Year List &lt;<a href="mailto:sofdev@edulists.com.au">sofdev@edulists.com.au</a>&gt;<br>
<b>Date: </b>Wednesday, 30 April 2014 10:51 am<br>
<b>To: </b>Year List &lt;<a href="mailto:sofdev@edulists.com.au">sofdev@edulists.com.au</a>&gt;<br>
<b>Subject: </b>Re: [Year 12 SofDev] Programming Help</span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:10.5pt; color:black">&nbsp;</span></p>
</div>
<div>
<div>
<p class="MsoNormal"><span style="color:#1F497D">Hi Kevork</span><span style="color:black"></span></p>
<p class="MsoNormal"><span style="color:#1F497D">&nbsp;</span><span style="color:black"></span></p>
<p class="MsoNormal"><span style="color:#1F497D">In SD I’m using VB, but I have a Computer Club for all students who want to participate in various activities. I am more familiar with Small Basic, so I have been teaching the other classes SB as I thought it’s
 a good introduction.</span><span style="color:black"></span></p>
<p class="MsoNormal"><span style="color:#1F497D">&nbsp;</span><span style="color:black"></span></p>
<p class="MsoNormal"><span style="color:#1F497D">Any suggestions for programming short &nbsp;courses would be appreciated – as I spend hours of my time updating my skills in everything else and teaching myself programming is proving too difficult.</span><span style="color:black"></span></p>
<p class="MsoNormal"><span style="color:#1F497D">&nbsp;</span><span style="color:black"></span></p>
<p class="MsoNormal"><span style="color:#1F497D">Cheers,</span><span style="color:black"></span></p>
<p class="MsoNormal"><span style="color:#1F497D">Vic</span><span style="color:black"></span></p>
<p class="MsoNormal"><span style="color:#1F497D">&nbsp;</span><span style="color:black"></span></p>
<div>
<div style="border:none; border-top:solid #B5C4DF 1.0pt; padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal"><b><span lang="EN-US" style="font-size: 10pt; font-family: Tahoma, sans-serif; color: black;">From:</span></b><span lang="EN-US" style="font-size: 10pt; font-family: Tahoma, sans-serif; color: black;"><a href="mailto:sofdev-bounces@edulists.com.au">sofdev-bounces@edulists.com.au</a>
 [<a href="mailto:sofdev-bounces@edulists.com.au">mailto:sofdev-bounces@edulists.com.au</a>]
<b>On Behalf Of </b>Kevork KROZIAN<br>
<b>Sent:</b> Wednesday, 30 April 2014 9:16 AM<br>
<b>To:</b> Year 12 Software Development Teachers' Mailing List<br>
<b>Subject:</b> Re: [Year 12 SofDev] Programming Help</span><span style="color:black"></span></p>
</div>
</div>
<p class="MsoNormal"><span style="color:black">&nbsp;</span></p>
<div>
<p class="MsoNormal"><span style="font-size: 12pt; font-family: 'Times New Roman', serif; color: black;">Hi Victoria</span><span style="color:black"></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size: 12pt; font-family: 'Times New Roman', serif; color: black;">&nbsp;</span><span style="color:black"></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size: 12pt; font-family: 'Times New Roman', serif; color: black;">What language are you using in your course ?</span><span style="color:black"></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size: 12pt; font-family: 'Times New Roman', serif; color: black;">&nbsp;</span><span style="color:black"></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size: 12pt; font-family: 'Times New Roman', serif; color: black;">Kevork&nbsp;</span><span style="color:black"></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size: 12pt; font-family: 'Times New Roman', serif; color: black;">&nbsp;</span><span style="color:black"></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size: 12pt; font-family: 'Times New Roman', serif; color: black;">&nbsp;</span><span style="color:black"></span></p>
</div>
<div>
<div>
<p class="MsoNormal"><span style="font-size: 7pt; font-family: 'Times New Roman', serif; color: rgb(87, 87, 87);">Sent from my Samsung GALAXY S4 on the Telstra 4G network</span><span style="color:black"></span></p>
</div>
</div>
<p class="MsoNormal" style="margin-bottom:12.0pt"><span style="font-size: 12pt; font-family: 'Times New Roman', serif; color: black;">&nbsp;</span><span style="color:black"></span></p>
<div>
<p class="MsoNormal"><span style="font-size: 12pt; font-family: 'Times New Roman', serif; color: black;">-------- Original message --------</span><span style="color:black"></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size: 12pt; font-family: 'Times New Roman', serif; color: black;">From: Victoria Farrell
</span><span style="color:black"></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size: 12pt; font-family: 'Times New Roman', serif; color: black;">Date:30/04/2014 7:51 AM (GMT&#43;10:00)
</span><span style="color:black"></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size: 12pt; font-family: 'Times New Roman', serif; color: black;">To: Year 12 Software Development Teachers' Mailing List
</span><span style="color:black"></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size: 12pt; font-family: 'Times New Roman', serif; color: black;">Subject: Re: [Year 12 SofDev] Programming Help
</span><span style="color:black"></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size: 12pt; font-family: 'Times New Roman', serif; color: black;">&nbsp;</span><span style="color:black"></span></p>
</div>
<div>
<div>
<p class="MsoNormal"><span style="color:#1F497D">Thank you SO MUCH Peter, this has helped a lot!!!</span><span style="color:black"></span></p>
<p class="MsoNormal"><span style="color:#1F497D">&nbsp;</span><span style="color:black"></span></p>
<p class="MsoNormal"><span style="color:#1F497D">Vic</span><span style="color:black"></span></p>
<p class="MsoNormal"><span style="color:#1F497D">&nbsp;</span><span style="color:black"></span></p>
<div>
<div style="border:none; border-top:solid #B5C4DF 1.0pt; padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal"><b><span lang="EN-US" style="font-size: 10pt; font-family: Tahoma, sans-serif; color: black;">From:</span></b><span lang="EN-US" style="font-size: 10pt; font-family: Tahoma, sans-serif; color: black;"><a href="mailto:sofdev-bounces@edulists.com.au">sofdev-bounces@edulists.com.au</a>
 [<a href="mailto:sofdev-bounces@edulists.com.au">mailto:sofdev-bounces@edulists.com.au</a>]
<b>On Behalf Of </b>Coventry, Peter J<br>
<b>Sent:</b> Tuesday, 29 April 2014 7:06 PM<br>
<b>To:</b> Year 12 Software Development Teachers' Mailing List<br>
<b>Subject:</b> Re: [Year 12 SofDev] Programming Help</span><span style="color:black"></span></p>
</div>
</div>
<p class="MsoNormal"><span style="color:black">&nbsp;</span></p>
<p class="MsoNormal"><span style="color:#1F497D">The program you have is slightly different in its intentions – it asks for a number
<i>n</i> and then generates the first <i>n</i> prime numbers.</span><span style="color:black"></span></p>
<p class="MsoNormal"><span style="color:#1F497D">&nbsp;</span><span style="color:black"></span></p>
<p class="MsoNormal"><span style="color:#1F497D">However it could be adapted fairly easily by modifying the exit condition for the loop. (i.e. the program would ask for the last number and then check if Num=n to exit MainLoop. The Ender section would print
 Array.GetItemCount(Prime)</span><span style="color:black"></span></p>
<p class="MsoNormal"><span style="color:#1F497D">&nbsp;</span><span style="color:black"></span></p>
<p class="MsoNormal"><span style="color:#1F497D">I’ve added some comments to the program to hopefully explain how it works.</span><span style="color:black"></span></p>
<p class="MsoNormal"><span style="color:#1F497D">&nbsp;</span><span style="color:black"></span></p>
<p class="MsoNormal"><span style="color:#1F497D">Disclaimer: I don’t teach SD, and don’t really know Small Basic – I did a fair bit of programming in another life and still enjoy the occasional dabble.</span><span style="color:black"></span></p>
<p class="MsoNormal"><span style="color:#1F497D">&nbsp;</span><span style="color:black"></span></p>
<p class="MsoNormal"><span style="color:#1F497D">Cheers,</span><span style="color:black"></span></p>
<p class="MsoNormal"><span style="color:#1F497D">Peter</span><span style="color:black"></span></p>
<p class="MsoNormal"><span style="color:#1F497D">&nbsp;</span><span style="color:black"></span></p>
<div>
<div style="border:none; border-top:solid #B5C4DF 1.0pt; padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal"><b><span lang="EN-US" style="font-size: 10pt; font-family: Tahoma, sans-serif; color: black;">From:</span></b><span lang="EN-US" style="font-size: 10pt; font-family: Tahoma, sans-serif; color: black;"><a href="mailto:sofdev-bounces@edulists.com.au">sofdev-bounces@edulists.com.au</a>
 [<a href="mailto:sofdev-bounces@edulists.com.au">mailto:sofdev-bounces@edulists.com.au</a>]
<b>On Behalf Of </b>Victoria Farrell<br>
<b>Sent:</b> Tuesday, 29 April 2014 8:27 AM<br>
<b>To:</b> Year 12 Software Development Teachers' Mailing List<br>
<b>Subject:</b> [Year 12 SofDev] Programming Help</span><span style="color:black"></span></p>
</div>
</div>
<p class="MsoNormal"><span style="color:black">&nbsp;</span></p>
<p class="MsoNormal"><span style="color:#1F497D">Hi,</span><span style="color:black"></span></p>
<p class="MsoNormal"><span style="color:#1F497D">&nbsp;</span><span style="color:black"></span></p>
<p class="MsoNormal"><span style="color:#1F497D">Very new to Software Development and it’s been 20 odd years since programming at Uni, I could use some help with a problem.</span><span style="color:black"></span></p>
<p class="MsoNormal"><span style="color:#1F497D">&nbsp;</span><span style="color:black"></span></p>
<p class="MsoNormal"><span style="color:#1F497D">I recently had students involved in the Melbourne University Programming Competition and had problems with solving the following question:</span><span style="color:black"></span></p>
<p class="MsoNormal"><span style="color:#1F497D">&nbsp;</span><span style="color:black"></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-family:NimbusRomNo9L-Regu; color:black">A positive integer
</span><span style="font-family:CMMI10; color:black">x &gt; </span><span style="font-family:CMR10; color:black">1
</span><span style="font-family:NimbusRomNo9L-Regu; color:black">is a prime if its only factors are
</span><span style="font-family:CMR10; color:black">1 </span><span style="font-family:NimbusRomNo9L-Regu; color:black">and
</span><span style="font-family:CMMI10; color:black">x</span><span style="font-family:NimbusRomNo9L-Regu; color:black">. Hence the numbers
</span><span style="font-family:CMR10; color:black">2</span><span style="font-family:NimbusRomNo9L-Regu; color:black">,
</span><span style="font-family:CMR10; color:black">11</span><span style="font-family:NimbusRomNo9L-Regu; color:black">, and
</span><span style="font-family:CMR10; color:black">101 </span><span style="font-family:NimbusRomNo9L-Regu; color:black">are primes, but
</span><span style="font-family:CMR10; color:black">1</span><span style="font-family:NimbusRomNo9L-Regu; color:black">,
</span><span style="font-family:CMR10; color:black">9</span><span style="font-family:NimbusRomNo9L-Regu; color:black">,</span><span style="color:black"></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-family:NimbusRomNo9L-Regu; color:black">and
</span><span style="font-family:CMR10; color:black">1001 </span><span style="font-family:NimbusRomNo9L-Regu; color:black">are not prime*.</span><span style="color:black"></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-family:NimbusRomNo9L-Regu; color:black">The input to your program is a single positive integer
</span><span style="font-family:CMMI10; color:black">n</span><span style="font-family:NimbusRomNo9L-Regu; color:black">. The output should be the number of primes that are
</span><span style="font-family:CMSY10; color:black">_ </span><span style="font-family:CMMI10; color:black">n</span><span style="font-family:NimbusRomNo9L-Regu; color:black">.</span><span style="color:black"></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-family:NimbusRomNo9L-Regu; color:black">For example, if the input is
</span><span style="font-family:NimbusMonL-Regu; color:black">1000 </span><span style="font-family:NimbusRomNo9L-Regu; color:black">then the output is
</span><span style="font-family:NimbusMonL-Regu; color:black">168</span><span style="font-family:NimbusRomNo9L-Regu; color:black">.</span><span style="color:black"></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-family:NimbusRomNo9L-Regu; color:black">* In case you’re wondering,
</span><span style="font-family:CMR10; color:black">1001 = 7 </span><span style="font-family:CMSY10; color:black">_
</span><span style="font-family:CMR10; color:black">11 </span><span style="font-family:CMSY10; color:black">_
</span><span style="font-family:CMR10; color:black">13</span><span style="font-family:NimbusRomNo9L-Regu; color:black">.</span><span style="color:black"></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-family:NimbusRomNo9L-Regu; color:black">Your five answers should be for</span><span style="color:black"></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-family:NimbusRomNo9L-Regu; color:black">1.</span><span style="font-family:CMMI10; color:black">n
</span><span style="font-family:CMR10; color:black">= 10</span><span style="color:black"></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-family:NimbusRomNo9L-Regu; color:black">2.
</span><span style="font-family:CMMI10; color:black">n </span><span style="font-family:CMR10; color:black">= 100</span><span style="color:black"></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-family:NimbusRomNo9L-Regu; color:black">3.
</span><span style="font-family:CMMI10; color:black">n </span><span style="font-family:CMR10; color:black">= 100</span><span style="font-family:CMMI10; color:black">;
</span><span style="font-family:CMR10; color:black">000</span><span style="color:black"></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-family:NimbusRomNo9L-Regu; color:black">4.
</span><span style="font-family:CMMI10; color:black">n </span><span style="font-family:CMR10; color:black">= 10</span><span style="font-family:CMMI10; color:black">;
</span><span style="font-family:CMR10; color:black">000</span><span style="font-family:CMMI10; color:black">;
</span><span style="font-family:CMR10; color:black">000</span><span style="color:black"></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-family:NimbusRomNo9L-Regu; color:black">5.
</span><span style="font-family:CMMI10; color:black">n </span><span style="font-family:CMR10; color:black">= 20</span><span style="font-family:CMMI10; color:black">;
</span><span style="font-family:CMR10; color:black">000</span><span style="font-family:CMMI10; color:black">;
</span><span style="font-family:CMR10; color:black">000</span><span style="color:black"></span></p>
<p class="MsoNormal"><span style="font-family:NimbusRomNo9L-Regu; color:black">&nbsp;</span><span style="color:black"></span></p>
<p class="MsoNormal"><span style="font-family:NimbusRomNo9L-Regu; color:black">&nbsp;</span><span style="color:black"></span></p>
<p class="MsoNormal"><span style="color:#1F497D">We decided to solve in Small Basic so as to get a handle on lops and arrays, but did not manage to solve it. I found a solution online (below) but was not able to understand how the array worked. It doesn’t solve
 the problem exactly as it just lists the input number of primes, but it certain can calculate/select for primes.</span><span style="color:black"></span></p>
<p class="MsoNormal"><span style="color:#1F497D">&nbsp;</span><span style="color:black"></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:12.0pt; font-family:Consolas; color:black">Init</span><span style="font-size:12.0pt; font-family:Consolas; color:maroon">:</span><span style="color:black"></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:12.0pt; font-family:Consolas; color:#006060">TextWindow</span><span style="font-size:12.0pt; font-family:Consolas; color:maroon">.</span><span style="font-size:12.0pt; font-family:Consolas; color:#802020">WriteLine</span><span style="font-size:12.0pt; font-family:Consolas; color:maroon">(</span><span style="font-size:12.0pt; font-family:Consolas; color:#CC6633">&quot;How
 many Prime numbers (1-1000)? &quot;</span><span style="font-size:12.0pt; font-family:Consolas; color:maroon">)</span><span style="color:black"></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:12.0pt; font-family:Consolas; color:black">N</span><span style="font-size:12.0pt; font-family:Consolas; color:maroon">=</span><span style="font-size:12.0pt; font-family:Consolas; color:#006060">TextWindow</span><span style="font-size:12.0pt; font-family:Consolas; color:maroon">.</span><span style="font-size:12.0pt; font-family:Consolas; color:#802020">ReadNumber</span><span style="font-size:12.0pt; font-family:Consolas; color:maroon">()</span><span style="color:black"></span></p>
<p class="MsoNormal" style="text-autospace:none"><b><span style="font-size:12.0pt; font-family:Consolas; color:#7777FF">If</span></b><span style="font-size:12.0pt; font-family:Consolas; color:black">N</span><span style="font-size:12.0pt; font-family:Consolas; color:maroon">&lt;</span><span style="font-size:12.0pt; font-family:Consolas; color:#DD6633">1</span><span style="font-size:12.0pt; font-family:Consolas; color:maroon">Or</span><span style="font-size:12.0pt; font-family:Consolas; color:black">
 N</span><span style="font-size:12.0pt; font-family:Consolas; color:maroon">&gt;</span><span style="font-size:12.0pt; font-family:Consolas; color:#DD6633">1000</span><b><span style="font-size:12.0pt; font-family:Consolas; color:#7777FF">Then</span></b><span style="color:black"></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:12.0pt; font-family:Consolas; color:black">&nbsp;
</span><span style="font-size:12.0pt; font-family:Consolas; color:#006060">TextWindow</span><span style="font-size:12.0pt; font-family:Consolas; color:maroon">.</span><span style="font-size:12.0pt; font-family:Consolas; color:#802020">WriteLine</span><span style="font-size:12.0pt; font-family:Consolas; color:maroon">(</span><span style="font-size:12.0pt; font-family:Consolas; color:#CC6633">&quot;That's
 All Folks!&quot;</span><span style="font-size:12.0pt; font-family:Consolas; color:maroon">)</span><span style="color:black"></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:12.0pt; font-family:Consolas; color:black">&nbsp;
</span><span style="font-size:12.0pt; font-family:Consolas; color:#006060">TextWindow</span><span style="font-size:12.0pt; font-family:Consolas; color:maroon">.</span><span style="font-size:12.0pt; font-family:Consolas; color:#802020">Pause</span><span style="font-size:12.0pt; font-family:Consolas; color:maroon">()</span><span style="color:black"></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:12.0pt; font-family:Consolas; color:black">&nbsp;
</span><span style="font-size:12.0pt; font-family:Consolas; color:#006060">Program</span><span style="font-size:12.0pt; font-family:Consolas; color:maroon">.</span><span style="font-size:12.0pt; font-family:Consolas; color:#802020">End</span><span style="font-size:12.0pt; font-family:Consolas; color:maroon">()</span><span style="color:black"></span></p>
<p class="MsoNormal" style="text-autospace:none"><b><span style="font-size:12.0pt; font-family:Consolas; color:#7777FF">EndIf</span></b><span style="color:black"></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:12.0pt; font-family:Consolas; color:black">&nbsp;</span><span style="color:black"></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:12.0pt; font-family:Consolas; color:black">&nbsp;</span><span style="color:black"></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:12.0pt; font-family:Consolas; color:black">Prime</span><span style="font-size:12.0pt; font-family:Consolas; color:maroon">=</span><span style="font-size:12.0pt; font-family:Consolas; color:#CC6633">&quot;1=2;&quot;</span><span style="font-size:12.0pt; font-family:Consolas; color:#1F497D">&nbsp;
 ‘ Prime is an array to hold the prime numbers we find. Start by creating a single element array with value 2 – the first prime number</span><span style="color:black"></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:12.0pt; font-family:Consolas; color:black">Num</span><span style="font-size:12.0pt; font-family:Consolas; color:maroon">=</span><span style="font-size:12.0pt; font-family:Consolas; color:black">Prime[</span><span style="font-size:12.0pt; font-family:Consolas; color:#006060">Array</span><span style="font-size:12.0pt; font-family:Consolas; color:maroon">.</span><span style="font-size:12.0pt; font-family:Consolas; color:#802020">GetItemCount</span><span style="font-size:12.0pt; font-family:Consolas; color:maroon">(</span><span style="font-size:12.0pt; font-family:Consolas; color:black">Prime</span><span style="font-size:12.0pt; font-family:Consolas; color:maroon">)</span><span style="font-size:12.0pt; font-family:Consolas; color:black">]</span><span style="font-size:12.0pt; font-family:Consolas; color:#1F497D">
 ‘ Num is the current number we are checking to see if it is prime. This gets the value of the last element in Prime. Could have also said Num=2</span><span style="color:black"></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:12.0pt; font-family:Consolas; color:black">&nbsp;</span><span style="color:black"></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:12.0pt; font-family:Consolas; color:black">&nbsp;</span><span style="color:black"></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:12.0pt; font-family:Consolas; color:black">MainLoop</span><span style="font-size:12.0pt; font-family:Consolas; color:maroon">:</span><span style="color:black"></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:12.0pt; font-family:Consolas; color:black">Num</span><span style="font-size:12.0pt; font-family:Consolas; color:maroon">=</span><span style="font-size:12.0pt; font-family:Consolas; color:black">Num</span><span style="font-size:12.0pt; font-family:Consolas; color:maroon">&#43;</span><span style="font-size:12.0pt; font-family:Consolas; color:#DD6633">1</span><span style="font-size:12.0pt; font-family:Consolas; color:#1F497D">
 ‘ looking at the next number to see if it is prime</span><span style="color:black"></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:12.0pt; font-family:Consolas; color:black">&nbsp;
</span><span style="color:black"></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:12.0pt; font-family:Consolas; color:black">&nbsp;&nbsp;Flag</span><span style="font-size:12.0pt; font-family:Consolas; color:maroon">=</span><span style="font-size:12.0pt; font-family:Consolas; color:#DD6633">1</span><span style="font-size:12.0pt; font-family:Consolas; color:#1F497D">
 ‘ Flag is 1 if Num is prime</span><span style="color:black"></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="color:#1F497D">&nbsp;</span><span style="color:black"></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:12.0pt; font-family:Consolas; color:black">&nbsp;
</span><b><span style="font-size:12.0pt; font-family:Consolas; color:#7777FF">For</span></b><span style="font-size:12.0pt; font-family:Consolas; color:black"> i</span><span style="font-size:12.0pt; font-family:Consolas; color:maroon">=</span><span style="font-size:12.0pt; font-family:Consolas; color:#DD6633">1</span><b><span style="font-size:12.0pt; font-family:Consolas; color:#7777FF">To</span></b><span style="font-size:12.0pt; font-family:Consolas; color:black"></span><span style="font-size:12.0pt; font-family:Consolas; color:#006060">Array</span><span style="font-size:12.0pt; font-family:Consolas; color:maroon">.</span><span style="font-size:12.0pt; font-family:Consolas; color:#802020">GetItemCount</span><span style="font-size:12.0pt; font-family:Consolas; color:maroon">(</span><span style="font-size:12.0pt; font-family:Consolas; color:black">Prime</span><span style="font-size:12.0pt; font-family:Consolas; color:maroon">)</span><span style="font-size:12.0pt; font-family:Consolas; color:#1F497D">&nbsp;
</span><span style="color:#1F497D">‘ Loop through each of the prime numbers in the array so far,</span><span style="color:black"></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:12.0pt; font-family:Consolas; color:black">&nbsp;&nbsp;&nbsp;
</span><b><span style="font-size:12.0pt; font-family:Consolas; color:#7777FF">If</span></b><span style="font-size:12.0pt; font-family:Consolas; color:black"></span><span style="font-size:12.0pt; font-family:Consolas; color:maroon">(</span><span style="font-size:12.0pt; font-family:Consolas; color:#006060">Math</span><span style="font-size:12.0pt; font-family:Consolas; color:maroon">.</span><span style="font-size:12.0pt; font-family:Consolas; color:#802020">Remainder</span><span style="font-size:12.0pt; font-family:Consolas; color:maroon">(</span><span style="font-size:12.0pt; font-family:Consolas; color:black">Num</span><span style="font-size:12.0pt; font-family:Consolas; color:maroon">,</span><span style="font-size:12.0pt; font-family:Consolas; color:black">Prime[i]</span><span style="font-size:12.0pt; font-family:Consolas; color:maroon">)=</span><span style="font-size:12.0pt; font-family:Consolas; color:#DD6633">0</span><span style="font-size:12.0pt; font-family:Consolas; color:maroon">)</span><b><span style="font-size:12.0pt; font-family:Consolas; color:#7777FF">Then</span></b><b><span style="font-size:12.0pt; font-family:Consolas; color:#1F497D">&nbsp;
</span></b><span style="font-size:12.0pt; font-family:Consolas; color:#1F497D">‘ check ifthe prime number is a factor of Num</span><span style="color:black"></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:12.0pt; font-family:Consolas; color:black">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</span><i><span style="font-size:12.0pt; font-family:Consolas; color:#008020">'Not Prime</span></i><span style="color:black"></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:12.0pt; font-family:Consolas; color:black">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Flag</span><span style="font-size:12.0pt; font-family:Consolas; color:maroon">=</span><span style="font-size:12.0pt; font-family:Consolas; color:#DD6633">0</span><span style="font-size:12.0pt; font-family:Consolas; color:#1F497D">
 ‘ resets Flag</span><span style="color:black"></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:12.0pt; font-family:Consolas; color:black">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; i</span><span style="font-size:12.0pt; font-family:Consolas; color:maroon">=</span><span style="font-size:12.0pt; font-family:Consolas; color:#006060">Array</span><span style="font-size:12.0pt; font-family:Consolas; color:maroon">.</span><span style="font-size:12.0pt; font-family:Consolas; color:#802020">GetItemCount</span><span style="font-size:12.0pt; font-family:Consolas; color:maroon">(</span><span style="font-size:12.0pt; font-family:Consolas; color:black">Prime</span><span style="font-size:12.0pt; font-family:Consolas; color:maroon">)</span><span style="font-size:12.0pt; font-family:Consolas; color:#1F497D">
 ‘ sets i to the last value so it exits this loop</span><span style="color:black"></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:12.0pt; font-family:Consolas; color:black">&nbsp;&nbsp;&nbsp;
</span><b><span style="font-size:12.0pt; font-family:Consolas; color:#7777FF">EndIf</span></b><span style="color:black"></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:12.0pt; font-family:Consolas; color:black">&nbsp;
</span><b><span style="font-size:12.0pt; font-family:Consolas; color:#7777FF">EndFor</span></b><span style="color:black"></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:12.0pt; font-family:Consolas; color:black">&nbsp;
</span><b><span style="font-size:12.0pt; font-family:Consolas; color:#7777FF">If</span></b><span style="font-size:12.0pt; font-family:Consolas; color:black"> Flag</span><span style="font-size:12.0pt; font-family:Consolas; color:maroon">=</span><span style="font-size:12.0pt; font-family:Consolas; color:#DD6633">1</span><b><span style="font-size:12.0pt; font-family:Consolas; color:#7777FF">Then</span></b><b><span style="font-size:12.0pt; font-family:Consolas; color:#1F497D">
 ‘</span></b><span style="font-size:12.0pt; font-family:Consolas; color:#1F497D">if we get to here with Flag=1 then the number has no factors besides itself – so it is prime</span><span style="color:black"></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:12.0pt; font-family:Consolas; color:black">&nbsp;&nbsp;&nbsp; Prime[</span><span style="font-size:12.0pt; font-family:Consolas; color:#006060">Array</span><span style="font-size:12.0pt; font-family:Consolas; color:maroon">.</span><span style="font-size:12.0pt; font-family:Consolas; color:#802020">GetItemCount</span><span style="font-size:12.0pt; font-family:Consolas; color:maroon">(</span><span style="font-size:12.0pt; font-family:Consolas; color:black">Prime</span><span style="font-size:12.0pt; font-family:Consolas; color:maroon">)&#43;</span><span style="font-size:12.0pt; font-family:Consolas; color:#DD6633">1</span><span style="font-size:12.0pt; font-family:Consolas; color:black">]</span><span style="font-size:12.0pt; font-family:Consolas; color:maroon">=</span><span style="font-size:12.0pt; font-family:Consolas; color:black">Num</span><span style="font-size:12.0pt; font-family:Consolas; color:#1F497D">&nbsp;
 ‘add this number to the end of the Prime array</span><span style="color:black"></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:12.0pt; font-family:Consolas; color:black">&nbsp;&nbsp;&nbsp;
</span><span style="font-size:12.0pt; font-family:Consolas; color:#006060">TextWindow</span><span style="font-size:12.0pt; font-family:Consolas; color:maroon">.</span><span style="font-size:12.0pt; font-family:Consolas; color:#802020">Write</span><span style="font-size:12.0pt; font-family:Consolas; color:maroon">(</span><span style="font-size:12.0pt; font-family:Consolas; color:#006060">Array</span><span style="font-size:12.0pt; font-family:Consolas; color:maroon">.</span><span style="font-size:12.0pt; font-family:Consolas; color:#802020">GetItemCount</span><span style="font-size:12.0pt; font-family:Consolas; color:maroon">(</span><span style="font-size:12.0pt; font-family:Consolas; color:black">Prime</span><span style="font-size:12.0pt; font-family:Consolas; color:maroon">))</span><span style="font-size:12.0pt; font-family:Consolas; color:#1F497D">&nbsp;
 ‘print something out</span><span style="color:black"></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:12.0pt; font-family:Consolas; color:black">&nbsp;&nbsp;&nbsp;
</span><span style="font-size:12.0pt; font-family:Consolas; color:#006060">TextWindow</span><span style="font-size:12.0pt; font-family:Consolas; color:maroon">.</span><span style="font-size:12.0pt; font-family:Consolas; color:#802020">WriteLine</span><span style="font-size:12.0pt; font-family:Consolas; color:maroon">(</span><span style="font-size:12.0pt; font-family:Consolas; color:#CC6633">&quot;&nbsp;&nbsp;
 &quot;</span><span style="font-size:12.0pt; font-family:Consolas; color:maroon">&#43;</span><span style="font-size:12.0pt; font-family:Consolas; color:black">Num</span><span style="font-size:12.0pt; font-family:Consolas; color:maroon">)</span><span style="color:black"></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:12.0pt; font-family:Consolas; color:black">&nbsp;&nbsp;&nbsp;
</span><b><span style="font-size:12.0pt; font-family:Consolas; color:#7777FF">if</span></b><span style="font-size:12.0pt; font-family:Consolas; color:black"></span><span style="font-size:12.0pt; font-family:Consolas; color:#006060">Array</span><span style="font-size:12.0pt; font-family:Consolas; color:maroon">.</span><span style="font-size:12.0pt; font-family:Consolas; color:#802020">GetItemCount</span><span style="font-size:12.0pt; font-family:Consolas; color:maroon">(</span><span style="font-size:12.0pt; font-family:Consolas; color:black">Prime</span><span style="font-size:12.0pt; font-family:Consolas; color:maroon">)&gt;=</span><span style="font-size:12.0pt; font-family:Consolas; color:black">N</span><b><span style="font-size:12.0pt; font-family:Consolas; color:#7777FF">Then</span></b><b><span style="font-size:12.0pt; font-family:Consolas; color:#1F497D">&nbsp;
</span></b><span style="font-size:12.0pt; font-family:Consolas; color:#1F497D">‘If we have found the number of primes requested, then exit the MainLoop</span><span style="color:black"></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:12.0pt; font-family:Consolas; color:black">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</span><b><span style="font-size:12.0pt; font-family:Consolas; color:#7777FF">Goto</span></b><span style="font-size:12.0pt; font-family:Consolas; color:black"> Ender</span><span style="color:black"></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:12.0pt; font-family:Consolas; color:black">&nbsp;&nbsp;&nbsp;
</span><b><span style="font-size:12.0pt; font-family:Consolas; color:#7777FF">EndIf</span></b><span style="color:black"></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:12.0pt; font-family:Consolas; color:black">&nbsp;
</span><b><span style="font-size:12.0pt; font-family:Consolas; color:#7777FF">EndIf</span></b><span style="color:black"></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:12.0pt; font-family:Consolas; color:black">&nbsp;
</span><b><span style="font-size:12.0pt; font-family:Consolas; color:#7777FF">Goto</span></b><span style="font-size:12.0pt; font-family:Consolas; color:black"> MainLoop</span><span style="color:black"></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:12.0pt; font-family:Consolas; color:black">&nbsp;
</span><span style="color:black"></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:12.0pt; font-family:Consolas; color:black">&nbsp;</span><span style="color:black"></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:12.0pt; font-family:Consolas; color:black">&nbsp;</span><span style="color:black"></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:12.0pt; font-family:Consolas; color:black">Ender</span><span style="font-size:12.0pt; font-family:Consolas; color:maroon">:</span><span style="color:black"></span></p>
<p class="MsoNormal" style="text-autospace:none"><i><span style="font-size:12.0pt; font-family:Consolas; color:#008020">'TextWindow.Write(&quot;Press any key to continue...&quot;)</span></i><span style="color:black"></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:12.0pt; font-family:Consolas; color:#006060">TextWindow</span><span style="font-size:12.0pt; font-family:Consolas; color:maroon">.</span><span style="font-size:12.0pt; font-family:Consolas; color:#802020">WriteLine</span><span style="font-size:12.0pt; font-family:Consolas; color:maroon">(</span><span style="font-size:12.0pt; font-family:Consolas; color:#CC6633">&quot;---&quot;</span><span style="font-size:12.0pt; font-family:Consolas; color:maroon">)</span><span style="color:black"></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:12.0pt; font-family:Consolas; color:#006060">TextWindow</span><span style="font-size:12.0pt; font-family:Consolas; color:maroon">.</span><span style="font-size:12.0pt; font-family:Consolas; color:#802020">Pause</span><span style="font-size:12.0pt; font-family:Consolas; color:maroon">()</span><span style="color:black"></span></p>
<p class="MsoNormal"><b><span style="font-size:12.0pt; font-family:Consolas; color:#7777FF">Goto</span></b><span style="font-size:12.0pt; font-family:Consolas; color:black">Init</span><span style="color:black"></span></p>
<p class="MsoNormal"><span style="font-size:12.0pt; font-family:Consolas; color:black">&nbsp;</span><span style="color:black"></span></p>
<p class="MsoNormal"><span style="color:#1F497D">Can anyone &nbsp;give me a brief written description, or point me to an online resource that can explain how this array functions? Can anyone identify a Small Basic function more suited to this problem?</span><span style="color:black"></span></p>
<p class="MsoNormal"><span style="color:#1F497D">&nbsp;</span><span style="color:black"></span></p>
<p class="MsoNormal"><span style="color:#1F497D">Thanks,</span><span style="color:black"></span></p>
<p class="MsoNormal"><span style="color:#1F497D">Vic</span><span style="color:black"></span></p>
<p><b><span style="color:black">Important - </span></b><span style="color:black">This email and any attachments may be confidential. If received in error, please contact us and delete all copies. Before opening or using attachments check them for viruses and
 defects. Regardless of any loss, damage or consequence, whether caused by the negligence of the sender or not, resulting directly or indirectly from the use of any attached files our liability is limited to resupplying any affected attachments. Any representations
 or opinions expressed are those of the individual sender, and not necessarily those of the Department of Education and Early Childhood Development.</span></p>
</div>
</div>
<p class="MsoNormal"><span style="font-size: 12pt; font-family: 'Times New Roman', serif; color: black;">&nbsp;</span><span style="color:black"></span></p>
<div class="MsoNormal" align="center" style="text-align:center"><span style="font-size: 12pt; font-family: 'Times New Roman', serif; color: black;">
<hr size="2" width="100%" align="center">
</span></div>
<p class="MsoNormal"><span style="font-size: 7.5pt; font-family: Arial, sans-serif; color: gray;"><br>
Important - This email and any attachments may be confidential. If received in error, please contact us and delete all copies. Before opening or using attachments check them for viruses and defects. Regardless of any loss, damage or consequence, whether caused
 by the negligence of the sender or not, resulting directly or indirectly from the use of any attached files our liability is limited to resupplying any affected attachments. Any representations or opinions expressed are those of the individual sender, and
 not necessarily those of Ringwood Secondary College.</span><span style="color:black"></span></p>
</div>
</div>
</div>
<br>
<hr>
<font face="Arial" color="Gray" size="1"><br>
Important - This email and any attachments may be confidential. If received in error, please contact us and delete all copies. Before opening or using attachments check them for viruses and defects. Regardless of any loss, damage or consequence, whether caused
 by the negligence of the sender or not, resulting directly or indirectly from the use of any attached files our liability is limited to resupplying any affected attachments. Any representations or opinions expressed are those of the individual sender, and
 not necessarily those of Ringwood Secondary College.<br>
</font></div>
</div>
</span><br>
<font face="Arial" color="Gray" size="1"><br>
THIS E-MAIL IS CONFIDENTIAL.If you have received this e-mail in error, please<br>
notify me by return e-mail and delete the document. If you are not the intended<br>
recipient you are hereby notified that any disclosure, copying, distribution or<br>
taking any action in reliance on the contents of this information is strictly<br>
prohibited and may be unlawful. Galen Catholic College is not liable for the<br>
proper and complete transmission of the information contained in this<br>
communication or for any delay in its receipt.<br>
</font>
</body>
</html>