what is prime numbers? how we can get plc write sas code?

Answer Posted / santosh reddy

data prime (drop=j count);
do i=100 to 1 by -1;
count=0;
do j=i to 1 by -1;
if mod(i,j)=0 then count+1;
end;
if count=2 then output;
/* output;*/
end;
run;

Is This Answer Correct ?    6 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

explain the key concept of sas? : Sas-administrator

552


what is SAS OPTIMIZATION?

1813


How long can a macro variable be? A token? : sas-macro

710


What would be the result of the following SAS function (given that 31 Dec, 2000 is Sunday)?

673


What are SAS/ACCESS and SAS/CONNECT?

621






if you were told to create many records from one record, show how you would do this using array and with proc transpose? : Sas programming

536


What are common programming errors committed in sas

663


explain what is data set in sas? : Sas-administrator

520


Can you explain the process of calendar?

629


how will you locate the sas platform applications? : Sas-bi

572


Describe a time when you were really stuck on a problem and how you solved it?

2079


What is the command used to find missing values?

583


Name any two sas spawners? : sas-grid-administration

550


what is the primary data source for the wrs? : Sas-bi

646


What are the different servers in sas? : sas-grid-administration

594