Skip to content

Commit

Permalink
running 42 days for 2E31 result
Browse files Browse the repository at this point in the history
  • Loading branch information
kreier committed Feb 4, 2024
1 parent 51d2c3a commit e8a6efb
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
3 changes: 3 additions & 0 deletions circuitpython/v5.2_esp32s3/2147483647.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
espressif_esp32s3_devkitc_1_n8r8
Primes to 2147483647 took 3.70412e+06 seconds. 1028h 55min 22s
Found 105097564 primes. Should be 105097564.
8 changes: 4 additions & 4 deletions circuitpython/v5.2_esp32s3/code.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
# prime v5.2 2023-12-11 for T-Display ESP32-S3 with 320x170 display
# prime v5.2 2023-12-20 for T-Display ESP32-S3 with 320x170 display
# cycles through limits and writes to the filesystem

import math, time, digitalio, board, os

scope = [100, 1000, 10000, 100000, 1000000, 10000000, 25000000, 100000000, 1000000000, 2147483647, 4294967295]
reference = [25, 168, 1229, 9592, 78498, 664579, 1565927, 5761455, 50847534, 105097564, 203280221]
scope = [100, 1000, 10000, 100000, 1000000, 10000000, 25000000, 100000000, 2147483647] # 1000000000, 2147483647, 4294967295
reference = [25, 168, 1229, 9592, 78498, 664579, 1565927, 5761455, 105097564] # 50847534, 105097564, 203280221
time_calc = [0, 0, 0, 0, 0, 0, 0, 0, 0]

led = digitalio.DigitalInOut(board.IO38)
Expand Down Expand Up @@ -94,7 +94,7 @@ def lightshow():
print('\nWrite summary')
try:
with open("summary.txt", "w") as fp:
fp.write(f'Primes calculation in Circuitpython v5.2 2023/12/11\n')
fp.write(f'Primes calculation in Circuitpython v5.2 2023/12/20\n')
fp.write(board.board_id)
fp.write('\n last time in seconds\n')
for i in range(len(time_calc)):
Expand Down

0 comments on commit e8a6efb

Please sign in to comment.