Hello,
we have a new download!
Title: FirstNPrimes
Description: This REXX program is written for ooREXX. As the name of the program suggests, output of the program is 'prime numbers'. User enters in a number, say N. After successful execution of the program, output is the prime numbers until N starting from 1.
This program was submitted by Enrico Sorichetti.
Category: REXX
Click app.php/downloadsystemcat?id=3 to go to the download page!
Have fun!
FirstNPrimes v1.0
- Anuj Dhawan
- Founder
- Posts: 2806
- Joined: Sun Apr 21, 2013 7:40 pm
- Location: Mumbai, India
- Contact:
FirstNPrimes v1.0
Thanks,
Anuj
Disclaimer: My comments on this website are my own and do not represent the opinions or suggestions of any other person or business entity, in any way.
Anuj
Disclaimer: My comments on this website are my own and do not represent the opinions or suggestions of any other person or business entity, in any way.
-
- New Member
- Posts: 7
- Joined: Sat Jan 23, 2016 11:34 am
Re: FirstNPrimes v1.0
Hi,
You've written that this can be used for ooREXX but I think we can modify to work it for mainframes too?
You've written that this can be used for ooREXX but I think we can modify to work it for mainframes too?
- Anuj Dhawan
- Founder
- Posts: 2806
- Joined: Sun Apr 21, 2013 7:40 pm
- Location: Mumbai, India
- Contact:
Re: FirstNPrimes v1.0
Hi,
Yes, you can do that. enrico-sorichetti can have a better opinion though.
Yes, you can do that. enrico-sorichetti can have a better opinion though.
Thanks,
Anuj
Disclaimer: My comments on this website are my own and do not represent the opinions or suggestions of any other person or business entity, in any way.
Anuj
Disclaimer: My comments on this website are my own and do not represent the opinions or suggestions of any other person or business entity, in any way.
-
- Global Moderator
- Posts: 828
- Joined: Wed Sep 11, 2013 3:57 pm
Re: FirstNPrimes v1.0
just change the first line
to
oops ...
also change the c-like constructto
Code: Select all
#! /usr/bin/rexx
Code: Select all
/* rexx */
also change the c-like construct
Code: Select all
<a> += <b>
Code: Select all
<a> = <a> + <b>
cheers
enrico
When I tell somebody to RTFM or STFW I usually have the page open in another tab/window of my browser,
so that I am sure that the information requested can be reached with a very small effort
enrico
When I tell somebody to RTFM or STFW I usually have the page open in another tab/window of my browser,
so that I am sure that the information requested can be reached with a very small effort
Create an account or sign in to join the discussion
You need to be a member in order to post a reply
Create an account
Not a member? register to join our community
Members can start their own topics & subscribe to topics
It’s free and only takes a minute