Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
9
Task/Cuban-primes/Maple/cuban-primes.maple
Normal file
9
Task/Cuban-primes/Maple/cuban-primes.maple
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
CubanPrimes := proc(n) local i, cp;
|
||||
cp := Array([]);
|
||||
for i by 2 while numelems(cp) < n do
|
||||
if isprime(3/4*i^2 + 1/4) then
|
||||
ArrayTools:-Append(cp, 3/4*i^2 + 1/4);
|
||||
end if;
|
||||
end do;
|
||||
return cp;
|
||||
end proc;
|
||||
Loading…
Add table
Add a link
Reference in a new issue