2016 Update
This commit is contained in:
parent
948b86eafa
commit
dcf5d15da3
7965 changed files with 139854 additions and 31002 deletions
|
|
@ -1,10 +1,10 @@
|
|||
SemiPrimes := proc( n )
|
||||
local fact;
|
||||
fact := numtheory:-divisors( n ) minus {1, n};
|
||||
fact := NumberTheory:-Divisors( n ) minus {1, n};
|
||||
if numelems( fact ) in {1,2} and not( member( 'false', isprime ~ ( fact ) ) ) then
|
||||
return n;
|
||||
else
|
||||
return NULL;
|
||||
end if;
|
||||
end proc:
|
||||
{ seq( SemiPrime( i ), i = 1..100 ) };
|
||||
{ seq( SemiPrimes( i ), i = 1..100 ) };
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue