Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
23
Task/Anti-primes/PILOT/anti-primes.pilot
Normal file
23
Task/Anti-primes/PILOT/anti-primes.pilot
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
C :n=1
|
||||
:max=0
|
||||
:seen=0
|
||||
|
||||
*number
|
||||
U :*count
|
||||
T (c>max):#n
|
||||
C (c>max):seen=seen+1
|
||||
C (c>max):max=c
|
||||
:n=n+1
|
||||
J (seen<20):*number
|
||||
E :
|
||||
|
||||
*count
|
||||
C (n=1):c=1
|
||||
E (n=1):
|
||||
C :c=2
|
||||
:i=2
|
||||
*cnloop
|
||||
E (i>n/2):
|
||||
C (i*(n/i)=n):c=c+1
|
||||
:i=i+1
|
||||
J :*cnloop
|
||||
Loading…
Add table
Add a link
Reference in a new issue