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
what are the component of range? : Sas-bi
Are you involved in writing the inferential analysis plan? Tables specifications?
How would you define the end of a macro? : sas-macro
name the scheduler for scheduling job and explain the scheduler? : Sas-di
What are the best sas programming practices for handling very large datasets? : sas-grid-administration
Describe crosslist option in tables statement?
Explain what Proc glm does?
what is enterprise guide? What is the use of it? : Sas programming
How do you control the number of observations and/or variables read or written?
How might you use MOD and INT on numeric to mimic SUBSTR on character Strings?
What is a put statement?
What are the differences between proc means and proc summary?
how can you create zero observation dataset? : Sas programming
How do you add a number to a macro variable? : sas-macro
Describe the ways in which you can create a macro variable?