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 does the run statement do? : Sas programming

556


what is factor analysis? : Sas-administrator

611


where are dashboard components are created and maintained? : Sas-bi

559


How would you identify a macro variable?

649


What is the difference between %local and %global? : sas-macro

668






How would you code a macro statement to produce information on the sas log? This statement can be coded anywhere? : sas-macro

580


what is intially documentation in sas?

4333


Define run-group processing?

581


How will you react when, while consulting a SAS documentation manual to get an answer to a problem, someone says hey, I thought you were supposed to know all that stuff already, and not have to look it up in a book?

1944


What are SAS/ACCESS and SAS/CONNECT?

630


it will become easy if uuu provide website linkssss and list of consultanciessssss

1529


what is the difference between infile and input? : Sas-administrator

607


What is the order of application for output data set options, input data set options and SAS statements?

1080


what is the different between functions and procs that calculate the same simple descriptive statistics? : Sas programming

589


what is operational data and operational system? : Sas-di

633