Data update
This commit is contained in:
parent
5150844a7d
commit
4bb20c9b71
7735 changed files with 38060 additions and 199180 deletions
|
|
@ -1,46 +1,32 @@
|
|||
fastfunc isprim num .
|
||||
if num < 2
|
||||
return 0
|
||||
.
|
||||
if num < 2 : return 0
|
||||
i = 2
|
||||
while i <= sqrt num
|
||||
if num mod i = 0
|
||||
return 0
|
||||
.
|
||||
if num mod i = 0 : return 0
|
||||
i += 1
|
||||
.
|
||||
return 1
|
||||
.
|
||||
func isright h .
|
||||
while h > 0
|
||||
if isprim h = 0
|
||||
return 0
|
||||
.
|
||||
if isprim h = 0 : return 0
|
||||
h = h div 10
|
||||
.
|
||||
return 1
|
||||
.
|
||||
func isleft h .
|
||||
d = pow 10 (floor log10 h)
|
||||
d = pow 10 (floor log h 10)
|
||||
while h > 0
|
||||
if isprim h = 0
|
||||
return 0
|
||||
.
|
||||
if h div d = 0
|
||||
return 0
|
||||
.
|
||||
if isprim h = 0 : return 0
|
||||
if h div d = 0 : return 0
|
||||
h = h mod d
|
||||
d /= 10
|
||||
.
|
||||
return 1
|
||||
.
|
||||
p = 999999
|
||||
while isleft p = 0
|
||||
p -= 2
|
||||
.
|
||||
while isleft p = 0 : p -= 2
|
||||
print p
|
||||
p = 999999
|
||||
while isright p = 0
|
||||
p -= 2
|
||||
.
|
||||
while isright p = 0 : p -= 2
|
||||
print p
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue