Rosetta Code talk:Add a Task: Difference between revisions
Content added Content deleted
Thundergnat (talk | contribs) m (Reverted edits by Manish Nataraj (talk) to last revision by Mwn3d) |
imported>Yasser Mohammed (→Extensible prime generator Ring Programming Language: new section) |
||
Line 22: | Line 22: | ||
:::Just for another way to think about it, maybe we can say that Cateories are DB tables where the keys are the page names. Then Properties would be tables where the keys are the page name and an additional value. --[[User:Mwn3d|Mwn3d]] 22:27, 9 November 2010 (UTC) |
:::Just for another way to think about it, maybe we can say that Cateories are DB tables where the keys are the page names. Then Properties would be tables where the keys are the page name and an additional value. --[[User:Mwn3d|Mwn3d]] 22:27, 9 November 2010 (UTC) |
||
== Extensible prime generator Ring Programming Language == |
|||
<big># Ring--> ' Program to Print all Prime Numbers in an Interval' |
|||
# Ring--> 'الحصول علي الأعداد الأولية في مدي محدد' |
|||
?'Enter Low Number : ' give Dow |
|||
?'Enter High Number : ' give UP |
|||
for x=Dow to up y=x-1 pr=0 |
|||
for i=1 to y if x%(x-i)=0 or x=2 pr++ ok next |
|||
if pr=1 ?x ok |
|||
next |
|||
</big> |
|||
[[File:Screenshot 2023 09 30-1.png|thumb|Prime Numbers By Ring Language]] |