what is prime numbers? how we can get plc write sas code?

Answer Posted / nandu

A small correction in the above one.

Data samp;
input number1 @@;
cards;
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
;
run;
data samp2;
set samp;
number2=number1 ;
if mod(number1,1) eq 0 and mod(number1,number2) eq 0
and (mod(number1,2) ne 0 and mod(number1,3) ne 0 and mod(number1,5) ne 0 and mod(number1,7) ne 0 and mod(number1,9) ne 0) then output ;
run;

Is This Answer Correct ?    2 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do you convert basic cube to transaction cube and transaction cube to basic cube?

1761


what is the difference between: x=a+b+c+d; and x=sum (of a, b, c ,d);? : Sas programming

599


What is connection profile? : sas-grid-administration

642


what are input dataset and output dataset options? : Sas programming

553


what is sas database server? : Sas-di

605






State the difference between INFORMAT and FORMAT ?

584


If you need the value of a variable rather than the variable itself what would you use to load the value to a macro variable? : sas-macro

588


AE datasets names? how many types?

2069


How would you identify a macro variable? : sas-macro

523


If you use a symput in a data step, when and where can you use the macro variable? : sas-macro

597


what is sas metadata server? : Sas-di

577


what are _numeric_ and _character_ and what do they do? : Sas programming

668


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

528


Explain the difference between informat and format with an example.

674


Name and describe few sas character functions that are used for data cleaning in brief.

658