Data update
This commit is contained in:
parent
5af6d93694
commit
796d366b97
455 changed files with 7413 additions and 1900 deletions
5
Task/Semiprime/Maxima/semiprime.maxima
Normal file
5
Task/Semiprime/Maxima/semiprime.maxima
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
/* The first part consider the cases of squares of primes, the second part the remaining cases */
|
||||
semiprimep(n):=if integerp(sqrt(n)) and primep(sqrt(n)) then true else lambda([x],length(ifactors(x))=2 and unique(map(second,ifactors(x)))=[1])(n)$
|
||||
|
||||
/* Example */
|
||||
sublist(makelist(i,i,100),semiprimep);
|
||||
Loading…
Add table
Add a link
Reference in a new issue