<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://community.appian.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" 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>How do I get Prime numbers 1-100</title><link>https://community.appian.com/discussions/f/general/23966/how-do-i-get-prime-numbers-1-100</link><description>How do I get prime numbers 1-100 ?</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: How do I get Prime numbers 1-100</title><link>https://community.appian.com/thread/152980?ContentTypeID=1</link><pubDate>Mon, 05 Jan 2026 19:15:42 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:11fb9244-a24d-4ab8-a09b-f5a3d20813a0</guid><dc:creator>Jesse Knight</dc:creator><description>&lt;p&gt;I&amp;#39;d like to propose a very different, scalable, very Appian equivalent of prime number detection:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Confirm that the business needs prime numbers 1-100 and assess the future risk that 100 is simply too low.
&lt;ol&gt;
&lt;li&gt;If you presume that one day they will need number &amp;gt; 100 then you can likely solve all of their future use cases with another 20 minutes of effort.&lt;/li&gt;
&lt;li&gt;Recognize that if you miscalculate this risk, performance will significantly degrade very quickly&lt;/li&gt;
&lt;/ol&gt;
&lt;/li&gt;
&lt;li&gt;Pre-load a sync&amp;#39;ed record with with your dataset of the first N prime numbers.
&lt;ol&gt;
&lt;li&gt;See the attached sync expression &lt;code&gt;JS_primes&lt;/code&gt; for a dynamic calculation where N = 13,848(testing numbers 1-150k); however&amp;nbsp;this is not the only approach, and YMMV with this approach if the business truly needs a gargantuan set of prime numbers to choose from.&lt;/li&gt;
&lt;li&gt;The nightly sync is disabled - this data never changes after deployment anyways&lt;/li&gt;
&lt;li&gt;N is &amp;lt;= the maximum record allowance (we&amp;#39;ll say 4 million rows for most of us). If you&amp;#39;re sure you only want primes between 1-100, then N = 25. Update the record sync expression or data loading approach accordingly.&lt;/li&gt;
&lt;li&gt;The prime integer can be stored as an integer for record sync purposes since the &lt;a href="https://fooddeserts.org/images/000MathematicsPrimes.htm"&gt;10,000,000th prime integer is 179,424,673&lt;/a&gt; - thus we don&amp;#39;t need to worry about integer overflow for now. If Appian increases the max record sync&amp;#39;ed rows beyond 50,000,000, then this could change.&lt;/li&gt;
&lt;li&gt;No non-prime number should exist in the&amp;nbsp;sync&amp;#39;ed record&lt;/li&gt;
&lt;/ol&gt;
&lt;/li&gt;
&lt;li&gt;Run &lt;code&gt;a!queryRecordType()&lt;/code&gt; on the table with &lt;code&gt;a!queryFilter(field: integer_int, operator:&amp;quot;&amp;lt;=&amp;quot;, value: 100)&lt;/code&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;Sync Expression:&lt;br /&gt;&lt;img style="max-height:240px;max-width:320px;" src="/resized-image/__size/640x480/__key/communityserver-discussions-components-files/11/pastedimage1767643444872v1.png" alt=" " /&gt;&lt;br /&gt;Optimized isPrime calculation:&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" alt=" " src="/resized-image/__size/640x480/__key/communityserver-discussions-components-files/11/pastedimage1767642178266v1.png" /&gt;&lt;/p&gt;
&lt;p&gt;Since this exercise is usually brought up as a way to teach complexity of calculations / compute time vs tradeoffs of storage / memory:&lt;img style="max-height:240px;max-width:320px;" alt=" " src="/resized-image/__size/640x480/__key/communityserver-discussions-components-files/11/pastedimage1767642239297v3.png" /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How do I get Prime numbers 1-100</title><link>https://community.appian.com/thread/152929?ContentTypeID=1</link><pubDate>Sun, 28 Dec 2025 17:27:14 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:7baec915-8e3f-45e6-83b2-b3a9cb2059c4</guid><dc:creator>VarunMehra_IDS</dc:creator><description>&lt;p&gt;Hi Please check out this solution,&lt;/p&gt;
&lt;p&gt;As according to the definition of prime number that it should be divisible by itself creates the logic. Bellow is the code&lt;/p&gt;
&lt;p&gt;a!localVariables(&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;local!listOfNumbers: enumerate(ri!number),&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;a!forEach(&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;local!listOfNumbers,&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;{&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;a!localVariables(&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;local!currentItem: fv!item,&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;if(&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; count(&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; a!forEach(&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; local!listOfNumbers,&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if(mod(local!currentItem, fv!item) = 0, 1, {})&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; )&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;) &amp;gt; 2,&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;{},&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;fv!item&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;)&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; )&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; )&amp;nbsp;&lt;/p&gt;
&lt;p&gt;)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How do I get Prime numbers 1-100</title><link>https://community.appian.com/thread/124360?ContentTypeID=1</link><pubDate>Tue, 16 Jan 2024 16:38:15 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:80dbf734-3529-4ac4-a18c-520bfe6c8de2</guid><dc:creator>Harshit Bumb (Appyzie)</dc:creator><description>&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="/resized-image/__size/640x480/__key/communityserver-discussions-components-files/11/pastedimage1705423066247v1.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How do I get Prime numbers 1-100</title><link>https://community.appian.com/thread/124359?ContentTypeID=1</link><pubDate>Tue, 16 Jan 2024 16:30:35 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:9130bb0b-d9d1-4958-8b09-13ff58148413</guid><dc:creator>EREN_YEAGER</dc:creator><description>&lt;p&gt;for optimizing, we don&amp;#39;t have to check for all integers (1-n), we only need to check for 1 - sqrt(n)&amp;nbsp;&lt;pre class="ui-code" data-mode="text"&gt;sum(mod(ri!n, enumerate(sqrt(ri!n)) + 1) = 0) &amp;lt;= 1&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How do I get Prime numbers 1-100</title><link>https://community.appian.com/thread/123538?ContentTypeID=1</link><pubDate>Mon, 01 Jan 2024 06:14:36 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:cb284ef8-7ee6-4058-9afc-467d14798a4a</guid><dc:creator>krishnap9567</dc:creator><description>&lt;p&gt;a!localVariables(&lt;br /&gt; local!value: enumerate(ri!number) + 1,&lt;br /&gt; a!forEach(&lt;br /&gt; items: local!value,&lt;br /&gt; expression: if(&lt;br /&gt; length(&lt;br /&gt; wherecontains(&lt;br /&gt; 0,&lt;br /&gt; tointeger(mod(fv!item, local!value))&lt;br /&gt; )&lt;br /&gt; ) = 2,&lt;br /&gt; fv!item &amp;amp; &amp;quot; is Prime Number&amp;quot;,&lt;br /&gt; {}&lt;br /&gt; )&lt;br /&gt; )&lt;br /&gt;)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How do I get Prime numbers 1-100</title><link>https://community.appian.com/thread/121720?ContentTypeID=1</link><pubDate>Wed, 15 Nov 2023 08:59:06 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:aafe2a87-a5bb-4d17-949b-c751ea875dd3</guid><dc:creator>kraty Maheshwari</dc:creator><description>&lt;p&gt;I would like to tweak the logic as the below code&amp;nbsp;does not exclude &lt;strong&gt;1&lt;/strong&gt; which is &lt;strong&gt;not&lt;/strong&gt; a prime number since &lt;strong&gt;1&lt;/strong&gt; has less than one factor, A prime number needs to have exactly two factors.&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;sum(mod(ri!number, enumerate(ri!number) + 1) = 0) &amp;lt;= 2&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Do this instead!&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;length(
  wherecontains(true, mod(ri!number, enumerate(ri!number) + 1) = 0)
) = 2&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;OR&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;sum(mod(ri!number, enumerate(ri!number) + 1) = 0) = 2&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Feel free to correct me if I am wrong.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How do I get Prime numbers 1-100</title><link>https://community.appian.com/thread/92301?ContentTypeID=1</link><pubDate>Wed, 16 Mar 2022 07:00:31 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:84d2a497-3c8c-487e-a42d-f4e04452092d</guid><dc:creator>sureshkumarj0001</dc:creator><description>&lt;p&gt;----------------&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;gives all the prime numbers&lt;/p&gt;
&lt;h1 class="TitleText---page_header TitleText---inDarkBackground"&gt;P_checkPrime&lt;/h1&gt;
&lt;p&gt;a!localVariables(&lt;br /&gt; local!testWith:enumerate(tointeger(sqrt(ri!number)))+2,&lt;br /&gt; &lt;br /&gt; local!test:remove(local!testWith,local!testWith[length(local!testWith)-1]),&lt;br /&gt; &lt;br /&gt; where(a!forEach(&lt;br /&gt; items: local!test,&lt;br /&gt; expression:if(mod(ri!number,fv!item)=0,true,false()) &lt;br /&gt; )&lt;br /&gt; )&lt;br /&gt; &lt;br /&gt;)&lt;/p&gt;
&lt;p&gt;------------------------------------------------------&lt;/p&gt;
&lt;p&gt;P_getPrimenumbers&lt;/p&gt;
&lt;p&gt;a!forEach(&lt;br /&gt; items: enumerate(100)+3,&lt;br /&gt; expression: &lt;br /&gt; if(length(rule!P_checkPrime(fv!item))&amp;gt;0&lt;br /&gt; ,&lt;br /&gt; {},&lt;br /&gt; fv!item&lt;br /&gt; )&lt;br /&gt; &lt;br /&gt;)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How do I get Prime numbers 1-100</title><link>https://community.appian.com/thread/92283?ContentTypeID=1</link><pubDate>Tue, 15 Mar 2022 21:53:49 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:f31aa453-6d14-4070-8fb8-f36c3ee7ad60</guid><dc:creator>ajhick</dc:creator><description>&lt;p&gt;I would only make one change which is to only enumerate up to the number being inspected.&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;sum(mod(ri!number, enumerate(ri!number) + 1) = 0) &amp;lt;= 2&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How do I get Prime numbers 1-100</title><link>https://community.appian.com/thread/92272?ContentTypeID=1</link><pubDate>Tue, 15 Mar 2022 15:13:36 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:6f5772ba-adbc-4267-b3f1-3e3b5c28f1a4</guid><dc:creator>davel001150</dc:creator><description>&lt;p&gt;My solution:&lt;/p&gt;
&lt;p&gt;Start with a few simple primes, such as local!primes:{2,3,5,7,13}&lt;/p&gt;
&lt;p&gt;forEach( items: enumerate(100) +1&lt;/p&gt;
&lt;p&gt;expression: if&lt;/p&gt;
&lt;p&gt;any(local!candidate = fv!item, /*any() function returns true if any of the elements in a boolean array are true*/&lt;/p&gt;
&lt;p&gt;forEach( items: local!primes)&lt;/p&gt;
&lt;p&gt;expression: mod(fv!candidate, fv!item) = 0 /*if a prime evenly divides your candidate number, it&amp;#39;s not prime)&lt;/p&gt;
&lt;p&gt;true, /*true in this case means it&amp;#39;s true that it&amp;#39;s not prime*/&lt;/p&gt;
&lt;p&gt;false&lt;/p&gt;
&lt;p&gt;), /*the for loop inside the any() function is just the first parameter of the if, if any are true, then it&amp;#39;s not prime*/&lt;/p&gt;
&lt;p&gt;null, /*so if it&amp;#39;s not prime, don&amp;#39;t return it, or if none of the primes we picked out divide it, maybe it&amp;#39;s prime, return it*/&lt;/p&gt;
&lt;p&gt;fv!item&lt;/p&gt;
&lt;p&gt;)&lt;/p&gt;
&lt;p&gt;Take the output of this and append it to local!primes to refine it.&amp;nbsp; You can keep adding more and more to get more and more primes.&amp;nbsp; It starts to get time consuming up into the 4 and 5 digit primes, but it will continue to work if you continue to add to the starting primes.&lt;/p&gt;
&lt;p&gt;You could also just go to wolfram alpha and copy and paste the answer into a constant.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How do I get Prime numbers 1-100</title><link>https://community.appian.com/thread/92267?ContentTypeID=1</link><pubDate>Tue, 15 Mar 2022 14:03:45 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:0f118329-c2eb-4c32-973f-8ee369d2f65e</guid><dc:creator>Mike Schmitt</dc:creator><description>&lt;p&gt;&amp;quot;filter()&amp;quot;, for those times when you&amp;#39;d rather have code that&amp;#39;s nearly unreadable instead of 4 lines longer &lt;span class="emoticon" data-url="https://community.appian.com/cfs-file/__key/system/emoji/1f605.svg" title="Sweat smile"&gt;&amp;#x1f605;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How do I get Prime numbers 1-100</title><link>https://community.appian.com/thread/92266?ContentTypeID=1</link><pubDate>Tue, 15 Mar 2022 13:47:52 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:4b9c09e2-1535-4309-9d86-d2642cd51af7</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;The idea is to find the number of number by which the given number can be divided.&lt;/p&gt;
&lt;p&gt;As the mod() function works with lists, I try the first 100 numbers. The compare operator &amp;quot;=&amp;quot; also works with lists. And the sum() interprets true and false like 1 and 0.&lt;/p&gt;
&lt;p&gt;Less than three factors means it is a prime.&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;sum(mod(ri!number, enumerate(100) + 1) = 0) &amp;lt;= 2&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How do I get Prime numbers 1-100</title><link>https://community.appian.com/thread/92265?ContentTypeID=1</link><pubDate>Tue, 15 Mar 2022 13:16:29 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:e3e65696-dae9-4390-a916-e7ce73b1c1bd</guid><dc:creator>vijayalakshmig0072</dc:creator><description>&lt;p&gt;&lt;span&gt;Hi Shilpa,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Try this for prime number rule.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;rule!isPrimeNumber(_) --&amp;gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;load(&lt;br /&gt; local!count: a!forEach(&lt;br /&gt; items: enumerate(100) + 1,&lt;br /&gt; expression: if(mod(ri!number, fv!item) = 0, fv!item, {})&lt;br /&gt; ),&lt;br /&gt; if(count(local!count) &amp;gt; 2, {}, ri!number)&lt;br /&gt;)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How do I get Prime numbers 1-100</title><link>https://community.appian.com/thread/92262?ContentTypeID=1</link><pubDate>Tue, 15 Mar 2022 11:32:14 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:c83d114a-7d0f-48b1-ba7c-9fa07d35ecb1</guid><dc:creator>GopalK</dc:creator><description>&lt;p&gt;Hi Shilpa ,it can be an expression rule to find out whether a number is prime or not. You would need to create that rule. I would suggest you to create this logic .&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How do I get Prime numbers 1-100</title><link>https://community.appian.com/thread/92261?ContentTypeID=1</link><pubDate>Tue, 15 Mar 2022 11:20:52 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:255163d1-deeb-47f9-b1d1-3ad04dc14e62</guid><dc:creator>shilpak0005</dc:creator><description>&lt;p&gt;can you please elaborate&lt;/p&gt;
&lt;p&gt;rule!isPrimeNumber(_),&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How do I get Prime numbers 1-100</title><link>https://community.appian.com/thread/92259?ContentTypeID=1</link><pubDate>Tue, 15 Mar 2022 09:41:43 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:7d29e9df-1505-4bef-998c-0dbe21bf7a6e</guid><dc:creator>GopalK</dc:creator><description>&lt;p&gt;Clean..&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How do I get Prime numbers 1-100</title><link>https://community.appian.com/thread/92258?ContentTypeID=1</link><pubDate>Tue, 15 Mar 2022 09:33:40 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:80836dba-89f1-4933-b1ce-7daf8b87afcb</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;filter(
  rule!isPrimeNumber(_),
  enumerate(100)+1,
)&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How do I get Prime numbers 1-100</title><link>https://community.appian.com/thread/92256?ContentTypeID=1</link><pubDate>Tue, 15 Mar 2022 09:31:04 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:c3c352bd-c603-4702-a8aa-82173e1d0014</guid><dc:creator>GopalK</dc:creator><description>&lt;p&gt;Hi Shilpa, Create an exp rule to check prime number and then use&amp;nbsp;below code.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;pre class="ui-code" data-mode="text"&gt;a!forEach(
  items: enumerate(100)+1,
  expression: if(
    rule!isPrimeNumber(fv!item),
    fv!item,
    {}
  )
)&lt;/pre&gt;&amp;nbsp;,&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>