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 program data vector? : Sas-administrator

839


please can you tell me that in companies sas work are doing by through sas coding or sas wizard ??

1893


Do you need to know if there are any missing values?

804


How do dates work in sas?

861


How do you specify the number of iterations and specific condition within a single do loop?

846


how to change the execute of macro

1924


what versions of sas have you used (on which platforms)? : Sas programming

811


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

783


why is sas considered self-documenting? : Sas programming

864


What are the functions which are used for character handling functions?

829


How to read an input file in sas?

915


What does the trace option do?

876


explain the difference between proc means and proc summary?

878


what is star schema? : Sas-di

851


is data integration and etl programming is same? : Sas-di

808