<rss xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd" version="2.0">
  <channel>
    <title>MaplePrimes - answers and comments on Question, Closest Prime Number</title>
    <link>http://www.mapleprimes.com/questions/40256-Closest-Prime-Number</link>
    <language>en-us</language>
    <copyright>2026 Maplesoft, A Division of Waterloo Maple Inc.</copyright>
    <generator>Maplesoft Document System</generator>
    <lastBuildDate>Thu, 18 Jun 2026 14:21:07 GMT</lastBuildDate>
    <pubDate>Thu, 18 Jun 2026 14:21:07 GMT</pubDate>
    <itunes:subtitle />
    <itunes:summary />
    <description>The latest answers and comments added to the Question, Closest Prime Number</description>
    <image>
      <url>http://www.mapleprimes.com/images/mapleprimeswhite.jpg</url>
      <title>MaplePrimes - answers and comments on Question, Closest Prime Number</title>
      <link>http://www.mapleprimes.com/questions/40256-Closest-Prime-Number</link>
    </image>
    <item>
      <title>Closest prime</title>
      <link>http://www.mapleprimes.com/questions/40256-Closest-Prime-Number?ref=Feed:MaplePrimes:Closest Prime Number:Comments#answer74079</link>
      <itunes:summary>This is a lot simpler:
&lt;pre&gt;
&gt; nearprime:= proc(x)
  local x1, x2;
    x1:= nextprime(x-1):
    x2:= prevprime(x):
    if x1 + x2 &amp;lt;= 2*x then x1 else x2 end if;
  end:
&lt;/pre&gt;
</itunes:summary>
      <description>This is a lot simpler:
&lt;pre&gt;
&gt; nearprime:= proc(x)
  local x1, x2;
    x1:= nextprime(x-1):
    x2:= prevprime(x):
    if x1 + x2 &amp;lt;= 2*x then x1 else x2 end if;
  end:
&lt;/pre&gt;
</description>
      <guid>74079</guid>
      <pubDate>Tue, 15 Jan 2008 09:31:19 Z</pubDate>
      <itunes:author>Robert Israel</itunes:author>
      <author>Robert Israel</author>
    </item>
    <item>
      <title>Cylindrical</title>
      <link>http://www.mapleprimes.com/questions/40256-Closest-Prime-Number?ref=Feed:MaplePrimes:Closest Prime Number:Comments#answer74065</link>
      <itunes:summary>I want to (triple)integrate  f(x,y,z):=7z  on the cylinder 
x^2+y^2&lt;=R, 0&lt;=z&lt;=m.
There are a lot of predefined region, but I haven't found Cylinder.
Could you help me?
Thanks,
           Sandor
</itunes:summary>
      <description>I want to (triple)integrate  f(x,y,z):=7z  on the cylinder 
x^2+y^2&lt;=R, 0&lt;=z&lt;=m.
There are a lot of predefined region, but I haven't found Cylinder.
Could you help me?
Thanks,
           Sandor
</description>
      <guid>74065</guid>
      <pubDate>Wed, 16 Jan 2008 01:49:29 Z</pubDate>
      <itunes:author>SandorSzabo</itunes:author>
      <author>SandorSzabo</author>
    </item>
    <item>
      <title>MultiInt</title>
      <link>http://www.mapleprimes.com/questions/40256-Closest-Prime-Number?ref=Feed:MaplePrimes:Closest Prime Number:Comments#answer74064</link>
      <itunes:summary>If for your example you have R=2 and m=3, you could call something like the following:

Student[MultivariateCalculus][MultiInt](7*z, z = 0 .. 3, y = 0 .. sqrt(2-x^2), x = 0 .. sqrt(2));

        (63/4)*Pi

Also, if you have a new question like this, would you be able to start a new forum topic?  This would make these forum topics easier to read and help those who are looking for information later.

Thanks,
Scott</itunes:summary>
      <description>If for your example you have R=2 and m=3, you could call something like the following:

Student[MultivariateCalculus][MultiInt](7*z, z = 0 .. 3, y = 0 .. sqrt(2-x^2), x = 0 .. sqrt(2));

        (63/4)*Pi

Also, if you have a new question like this, would you be able to start a new forum topic?  This would make these forum topics easier to read and help those who are looking for information later.

Thanks,
Scott</description>
      <guid>74064</guid>
      <pubDate>Wed, 16 Jan 2008 02:07:32 Z</pubDate>
      <itunes:author>Scott03</itunes:author>
      <author>Scott03</author>
    </item>
    <item>
      <title>How do you make a new line without executing?</title>
      <link>http://www.mapleprimes.com/questions/40256-Closest-Prime-Number?ref=Feed:MaplePrimes:Closest Prime Number:Comments#answer73973</link>
      <itunes:summary>How were you able to write code with line breaks

something 1;
something 2;
something 3;

without setting off the execution mode in Maple
after hitting the Enter key?

Please let me know, as this will be very useful to me.

Also, where is the Units template?

I use the Help menu all the time. But, to assign units
to a variable, they ask me to go to the Units template.
But, I do not see the Units template on the Worksheet.

Thanks.</itunes:summary>
      <description>How were you able to write code with line breaks

something 1;
something 2;
something 3;

without setting off the execution mode in Maple
after hitting the Enter key?

Please let me know, as this will be very useful to me.

Also, where is the Units template?

I use the Help menu all the time. But, to assign units
to a variable, they ask me to go to the Units template.
But, I do not see the Units template on the Worksheet.

Thanks.</description>
      <guid>73973</guid>
      <pubDate>Tue, 22 Jan 2008 08:25:53 Z</pubDate>
      <itunes:author>resolvent</itunes:author>
      <author>resolvent</author>
    </item>
    <item>
      <title>New line and Units template</title>
      <link>http://www.mapleprimes.com/questions/40256-Closest-Prime-Number?ref=Feed:MaplePrimes:Closest Prime Number:Comments#comment84383</link>
      <itunes:summary>Shift-Enter makes a new line without executing.

As for "Units template", do you mean Tasks?
Tools, Tasks, Browse... and click on "Units, Constants, and Errors".</itunes:summary>
      <description>Shift-Enter makes a new line without executing.

As for "Units template", do you mean Tasks?
Tools, Tasks, Browse... and click on "Units, Constants, and Errors".</description>
      <guid>84383</guid>
      <pubDate>Tue, 22 Jan 2008 09:52:24 Z</pubDate>
      <itunes:author>Robert Israel</itunes:author>
      <author>Robert Israel</author>
    </item>
    <item>
      <title>Units palette</title>
      <link>http://www.mapleprimes.com/questions/40256-Closest-Prime-Number?ref=Feed:MaplePrimes:Closest Prime Number:Comments#comment84382</link>
      <itunes:summary>To enter a new line of code, without causing the whole "execution group" to execute, use Shift-Enter instead of Enter.

I suspect that what you've been referred to, for Units entry, is one of the Units palettes. The palettes are in a collapsible left-pane. You can customize which palettes are seen using the top-menu View -&gt; Palettes -&gt; Arrange Palettes. The "Units (SI)" palette contains various SI system units as well as a generic Unit() call. This is an easy way to enter units with 2D Math input typesetting.

You can also type in calls like Unit('m') and with the context menu convert to 2D Input. Or you can do command-completion on the word Unit typed while in 2D Input mode and select the generic call which should be the first item in the drop-down list that appears.

In Maple, units have a multiplicative quality. To attach a unit to an expression pretty much means multiplying it by the appropriate Unit() call.

acer</itunes:summary>
      <description>To enter a new line of code, without causing the whole "execution group" to execute, use Shift-Enter instead of Enter.

I suspect that what you've been referred to, for Units entry, is one of the Units palettes. The palettes are in a collapsible left-pane. You can customize which palettes are seen using the top-menu View -&gt; Palettes -&gt; Arrange Palettes. The "Units (SI)" palette contains various SI system units as well as a generic Unit() call. This is an easy way to enter units with 2D Math input typesetting.

You can also type in calls like Unit('m') and with the context menu convert to 2D Input. Or you can do command-completion on the word Unit typed while in 2D Input mode and select the generic call which should be the first item in the drop-down list that appears.

In Maple, units have a multiplicative quality. To attach a unit to an expression pretty much means multiplying it by the appropriate Unit() call.

acer</description>
      <guid>84382</guid>
      <pubDate>Tue, 22 Jan 2008 10:22:44 Z</pubDate>
      <itunes:author>acer</itunes:author>
      <author>acer</author>
    </item>
  </channel>
</rss>