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 are the component of range? : Sas-bi

848


Are you involved in writing the inferential analysis plan? Tables specifications?

3727


How would you define the end of a macro? : sas-macro

872


name the scheduler for scheduling job and explain the scheduler? : Sas-di

835


What are the best sas programming practices for handling very large datasets? : sas-grid-administration

799


Describe crosslist option in tables statement?

968


Explain what Proc glm does?

865


what is enterprise guide? What is the use of it? : Sas programming

777


How do you control the number of observations and/or variables read or written?

1030


How might you use MOD and INT on numeric to mimic SUBSTR on character Strings?

1055


What is a put statement?

966


What are the differences between proc means and proc summary?

834


how can you create zero observation dataset? : Sas programming

917


How do you add a number to a macro variable? : sas-macro

769


Describe the ways in which you can create a macro variable?

854