Sum of prime numbers Andrey Tsvetkov

Compute the sum of all prime numbers in a stream of binary integers as fast as possible.

Input: 1 000 000 uint32 values in little-endian binary on STDIN (4 bytes each).

Output: The uint64 sum of all values that are prime, printed as a decimal string.

Back to listJun 27, 2021 19:36Yuriy LyfenkoYuriy LyfenkoScore: 36,850Success
Source Code

Source code access is restricted. Log in to request access.

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 27, 2021 19:3631,459110,500,82327,683,76302,224,128
2Jun 27, 2021 19:3631,54795,415,63627,761,36402,211,840
3Jun 27, 2021 19:3631,63396,345,60027,837,28402,220,032
4Jun 27, 2021 19:3636,79058,222,09231,364,0001,011,0002,269,184
5Jun 27, 2021 19:3636,82054,720,31631,390,0001,012,0002,269,184
6Jun 27, 2021 19:3636,82754,499,80432,408,00002,269,184
7Jun 27, 2021 19:3636,85052,372,53731,415,0001,013,0002,375,680
8Jun 27, 2021 19:3636,89154,805,92431,450,0001,014,0002,379,776
9Jun 27, 2021 19:3636,89454,084,17531,453,0001,014,0002,269,184
10Jun 27, 2021 19:3636,91956,698,79331,474,0001,015,0002,269,184
11Jun 27, 2021 19:3636,92252,428,98632,491,00002,461,696
12Jun 27, 2021 19:3637,01854,108,00431,558,0001,018,0002,379,776