<rss xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd" version="2.0">
  <channel>
    <title>MaplePrimes - answers and comments on Question, Simple problem but can't get it to work</title>
    <link>http://www.mapleprimes.com/questions/36615-Simple-Problem-But-Cant-Get-It-To-Work</link>
    <language>en-us</language>
    <copyright>2026 Maplesoft, A Division of Waterloo Maple Inc.</copyright>
    <generator>Maplesoft Document System</generator>
    <lastBuildDate>Fri, 12 Jun 2026 00:59:27 GMT</lastBuildDate>
    <pubDate>Fri, 12 Jun 2026 00:59:27 GMT</pubDate>
    <itunes:subtitle />
    <itunes:summary />
    <description>The latest answers and comments added to the Question, Simple problem but can't get it to work</description>
    <image>
      <url>http://www.mapleprimes.com/images/mapleprimeswhite.jpg</url>
      <title>MaplePrimes - answers and comments on Question, Simple problem but can't get it to work</title>
      <link>http://www.mapleprimes.com/questions/36615-Simple-Problem-But-Cant-Get-It-To-Work</link>
    </image>
    <item>
      <title>oh yh x,y,z represents</title>
      <link>http://www.mapleprimes.com/questions/36615-Simple-Problem-But-Cant-Get-It-To-Work?ref=Feed:MaplePrimes:Simple problem but can't get it to work:Comments#answer62934</link>
      <itunes:summary>&lt;p&gt;oh yh x,y,z represents numbers 2,3,7.&amp;nbsp; &lt;br /&gt;
&amp;nbsp;&lt;/p&gt;
&lt;p&gt;i hav tried doing but it dont work am really stuck&lt;br /&gt;
&lt;br /&gt;
for a from 1 to 100 do&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; if a:= a / 2 or a/3 &lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; then &amp;nbsp; &amp;nbsp; print(null)&lt;br /&gt;
&amp;nbsp;&amp;nbsp; else&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; print(a)&lt;br /&gt;
&amp;nbsp;&amp;nbsp; end if;&lt;br /&gt;
od;&lt;/p&gt;</itunes:summary>
      <description>&lt;p&gt;oh yh x,y,z represents numbers 2,3,7.&amp;nbsp; &lt;br /&gt;
&amp;nbsp;&lt;/p&gt;
&lt;p&gt;i hav tried doing but it dont work am really stuck&lt;br /&gt;
&lt;br /&gt;
for a from 1 to 100 do&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; if a:= a / 2 or a/3 &lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; then &amp;nbsp; &amp;nbsp; print(null)&lt;br /&gt;
&amp;nbsp;&amp;nbsp; else&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; print(a)&lt;br /&gt;
&amp;nbsp;&amp;nbsp; end if;&lt;br /&gt;
od;&lt;/p&gt;</description>
      <guid>62934</guid>
      <pubDate>Thu, 08 Oct 2009 22:45:28 Z</pubDate>
      <itunes:author>Jabz</itunes:author>
      <author>Jabz</author>
    </item>
    <item>
      <title>Hint: modulo</title>
      <link>http://www.mapleprimes.com/questions/36615-Simple-Problem-But-Cant-Get-It-To-Work?ref=Feed:MaplePrimes:Simple problem but can't get it to work:Comments#answer62935</link>
      <itunes:summary>&lt;p&gt;look up 'mod' in the help and more generally 'modulo' at Wikipedia or a Math book&lt;br /&gt;
&lt;br /&gt;
edited: and if you want a funny way for that homework, than recall Erathostenes'&lt;br /&gt;
sieve for primes. Up to 100 you only miss 5 as prime in sqrt(100). So you need&lt;br /&gt;
all primes plus multiples of 5 except those bad for 2,3,7&lt;/p&gt;</itunes:summary>
      <description>&lt;p&gt;look up 'mod' in the help and more generally 'modulo' at Wikipedia or a Math book&lt;br /&gt;
&lt;br /&gt;
edited: and if you want a funny way for that homework, than recall Erathostenes'&lt;br /&gt;
sieve for primes. Up to 100 you only miss 5 as prime in sqrt(100). So you need&lt;br /&gt;
all primes plus multiples of 5 except those bad for 2,3,7&lt;/p&gt;</description>
      <guid>62935</guid>
      <pubDate>Fri, 09 Oct 2009 00:28:10 Z</pubDate>
      <itunes:author>Axel Vogt</itunes:author>
      <author>Axel Vogt</author>
    </item>
    <item>
      <title>select</title>
      <link>http://www.mapleprimes.com/questions/36615-Simple-Problem-But-Cant-Get-It-To-Work?ref=Feed:MaplePrimes:Simple problem but can't get it to work:Comments#answer62936</link>
      <itunes:summary>&lt;p&gt;For example,&lt;/p&gt;
&lt;pre&gt;select(i-&amp;gt;igcd(i,2*3*7)=1,[$1..100])[];

  1, 5, 11, 13, 17, 19, 23, 25, 29, 31, 37, 41, 43, 47, 53, 55, 59,

        61, 65, 67, 71, 73, 79, 83, 85, 89, 95, 97
&lt;/pre&gt;
&lt;p&gt;Alec&lt;/p&gt;</itunes:summary>
      <description>&lt;p&gt;For example,&lt;/p&gt;
&lt;pre&gt;select(i-&amp;gt;igcd(i,2*3*7)=1,[$1..100])[];

  1, 5, 11, 13, 17, 19, 23, 25, 29, 31, 37, 41, 43, 47, 53, 55, 59,

        61, 65, 67, 71, 73, 79, 83, 85, 89, 95, 97
&lt;/pre&gt;
&lt;p&gt;Alec&lt;/p&gt;</description>
      <guid>62936</guid>
      <pubDate>Sun, 11 Oct 2009 00:44:19 Z</pubDate>
      <itunes:author>alec</itunes:author>
      <author>alec</author>
    </item>
    <item>
      <title>Thank u</title>
      <link>http://www.mapleprimes.com/questions/36615-Simple-Problem-But-Cant-Get-It-To-Work?ref=Feed:MaplePrimes:Simple problem but can't get it to work:Comments#comment62937</link>
      <itunes:summary>&lt;p&gt;Thank u i was trying to use modp(a,b) but didn't succeed. This method seems much easier thank u again.&lt;/p&gt;</itunes:summary>
      <description>&lt;p&gt;Thank u i was trying to use modp(a,b) but didn't succeed. This method seems much easier thank u again.&lt;/p&gt;</description>
      <guid>62937</guid>
      <pubDate>Sun, 11 Oct 2009 18:58:19 Z</pubDate>
      <itunes:author>Jabz</itunes:author>
      <author>Jabz</author>
    </item>
    <item>
      <title>with modp</title>
      <link>http://www.mapleprimes.com/questions/36615-Simple-Problem-But-Cant-Get-It-To-Work?ref=Feed:MaplePrimes:Simple problem but can't get it to work:Comments#comment62938</link>
      <itunes:summary>&lt;p&gt;With modp, that can be done as&lt;/p&gt;
&lt;pre&gt;
remove(i-&amp;gt;convert(modp~(i,[2,3,7]),`*`)=0,[$1..100]);

  [1, 5, 11, 13, 17, 19, 23, 25, 29, 31, 37, 41, 43, 47, 53, 55, 59,

        61, 65, 67, 71, 73, 79, 83, 85, 89, 95, 97]
&lt;/pre&gt;
&lt;p&gt;The Eratosthenes sieve (well, not exactly, but a kind of) solution can be done as&lt;/p&gt;
&lt;pre&gt;
{seq(1..100)} minus {seq(seq(i..100,i),i=[2,3,7])};

  {1, 5, 11, 13, 17, 19, 23, 25, 29, 31, 37, 41, 43, 47, 53, 55, 59,

        61, 65, 67, 71, 73, 79, 83, 85, 89, 95, 97}
&lt;/pre&gt;
&lt;p&gt;Alec&lt;/p&gt;</itunes:summary>
      <description>&lt;p&gt;With modp, that can be done as&lt;/p&gt;
&lt;pre&gt;
remove(i-&amp;gt;convert(modp~(i,[2,3,7]),`*`)=0,[$1..100]);

  [1, 5, 11, 13, 17, 19, 23, 25, 29, 31, 37, 41, 43, 47, 53, 55, 59,

        61, 65, 67, 71, 73, 79, 83, 85, 89, 95, 97]
&lt;/pre&gt;
&lt;p&gt;The Eratosthenes sieve (well, not exactly, but a kind of) solution can be done as&lt;/p&gt;
&lt;pre&gt;
{seq(1..100)} minus {seq(seq(i..100,i),i=[2,3,7])};

  {1, 5, 11, 13, 17, 19, 23, 25, 29, 31, 37, 41, 43, 47, 53, 55, 59,

        61, 65, 67, 71, 73, 79, 83, 85, 89, 95, 97}
&lt;/pre&gt;
&lt;p&gt;Alec&lt;/p&gt;</description>
      <guid>62938</guid>
      <pubDate>Sun, 11 Oct 2009 19:43:45 Z</pubDate>
      <itunes:author>alec</itunes:author>
      <author>alec</author>
    </item>
    <item>
      <title>Thank u another problem</title>
      <link>http://www.mapleprimes.com/questions/36615-Simple-Problem-But-Cant-Get-It-To-Work?ref=Feed:MaplePrimes:Simple problem but can't get it to work:Comments#comment62939</link>
      <itunes:summary>&lt;p&gt;I am very grateful 4 ur assistance thank you.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I have a new problem and i am not sure how to tackle it. &lt;/p&gt;
&lt;p&gt;Q. Write a procedure to give the factorial of n without using the built in function !.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I am not sure how to implement n*(n-1)*(n-2).......*(n-n) because&amp;nbsp; (n-n) is 0 which will turn everything to 0???&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&lt;/p&gt;</itunes:summary>
      <description>&lt;p&gt;I am very grateful 4 ur assistance thank you.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I have a new problem and i am not sure how to tackle it. &lt;/p&gt;
&lt;p&gt;Q. Write a procedure to give the factorial of n without using the built in function !.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I am not sure how to implement n*(n-1)*(n-2).......*(n-n) because&amp;nbsp; (n-n) is 0 which will turn everything to 0???&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&lt;/p&gt;</description>
      <guid>62939</guid>
      <pubDate>Sun, 11 Oct 2009 20:18:09 Z</pubDate>
      <itunes:author>Jabz</itunes:author>
      <author>Jabz</author>
    </item>
  </channel>
</rss>