Loading ...
Sorry, an error occurred while loading the content.

Topics List

How can I Calculate the factorial for the large number

(3)
Hi! Try the following: n=input('input number'); m=1; b=n-1; for i=b:-1:2; m=m*i; m=mod(m,n); end if m== b disp ('prime'); else disp ('composite');
aleksisto
3
posts
Jan 30
View First Topic Go to View Last Topic
There are no topics