Prime Substrings by henkma

l=[0..5]
m@main=do
s<-getLine;putStrLn$do x<-l;y<-l;(n,"")<-reads$take x$drop y s++" ";show$mod(product[1..n-1]^2)$n+0^n
m

Note that non-ascii characters in the above source code will be escaped (such as \x9f).

download

return to the top page