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

what is business intelligence? : Sas-bi

587


Explain the difference between using drop = data set option in set and data statement?

687


Differentiate between sas functions and sas procedures.

648


what are the benefits of data integration? : Sas-di

543


What are the default statistics for means procedure?

650






Give an example where SAS fails to convert character value to numeric value automatically?

609


What is a macro routine?

2106


what is data governance? : Sas-di

627


What do you understand by the term Normal Distribution?

574


which date function advances a date, time or datetime value by a given interval? : Sas programming

602


explain about data integrator metadata reports? : Sas-di

567


how does sas handle missing values in: assignment statements, functions, a merge, an update, sort order, formats, procs? : Sas programming

607


what is the function of catx syntax? : Sas-administrator

656


Name few SAS functions?

670


what is the use of proc contents and proc print in sas? : Sas-administrator

612