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

what is the function of catx syntax? : Sas-administrator

656


how we can create a FLAG datasets? Ex:-ID age_group no_persons 1 to 10 10 to 20 3 11 to 20 21 to 30 7 21 to 3o 31 to 40 5

1664


List out some key concept of SAS

625


What can you learn from the SAS log when debugging?

921


What is the use of %include statement?

625






What is the basic structure of a sas program?

604


what is sas application server, database server, sas olap server and sas metadata server? : Sas-di

555


What is the difference between input and infile statement?

688


how do you pull data from equifax?tell me the process?

1386


I have a dataset concat having variable a b & c. How to rename a b to e & f?

583


what is the one statement to set the criteria of data that can be coded in any step? : Sas programming

654


what are sas bi dashboard components? : Sas-bi

667


why is sas data integration studio important? : Sas-di

565


In SAS explain which statement does not perform automatic conversions in comparisons?

803


Can you suggest us materials for sdtm mapping?

4043