FirstNPrimes v1.0

Some usable downloads.
Post Reply
User avatar
Anuj Dhawan
Founder
Posts: 2801
Joined: Sun Apr 21, 2013 7:40 pm
Location: Mumbai, India
Contact:
India

FirstNPrimes v1.0

Post by Anuj Dhawan »

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!
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.
Eklavya Bharti
New Member
Posts: 7
Joined: Sat Jan 23, 2016 11:34 am

Re: FirstNPrimes v1.0

Post by Eklavya Bharti »

Hi,

You've written that this can be used for ooREXX but I think we can modify to work it for mainframes too?
User avatar
Anuj Dhawan
Founder
Posts: 2801
Joined: Sun Apr 21, 2013 7:40 pm
Location: Mumbai, India
Contact:
India

Re: FirstNPrimes v1.0

Post by Anuj Dhawan »

Hi,

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.
enrico-sorichetti
Global Moderator
Global Moderator
Posts: 826
Joined: Wed Sep 11, 2013 3:57 pm

Re: FirstNPrimes v1.0

Post by enrico-sorichetti »

just change the first line

Code: Select all

#!  /usr/bin/rexx
to

Code: Select all

/* rexx */
oops ...
also change the c-like construct

Code: Select all

<a> += <b> 
to

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 8-)
Post Reply

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

Register

Sign in

Return to “Downloads.”