Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
prime number programe using pl/sql
declare n number; i number; temp number; begin n := 1; i := 2; temp := 1; for i in 2..n/2 loop if mod(n, i) = 0 then temp := 0; exit; end if; end loop; if temp = 1 then dbms_output.put_line('true'); else dbms_output.put_line('false'); end if; end;
run
|
edit
|
history
|
help
0
EMP
2
shailendra
DBMS
Srinivas
Srinivas
epoch
function to check if reverse of a string s1 is a superstring of string s2.
even and odd plsql block
procedure to calulate LCM of three numbers