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 listDec 28, 2022 06:13Yuriy LyfenkoYuriy LyfenkoScore: 27,740Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 28, 2022 06:1327,45855,326,01922,150,0002,013,0002,523,136
2Dec 28, 2022 06:1327,56647,025,64623,248,0001,010,0002,392,064
3Dec 28, 2022 06:1327,57856,067,53323,258,0001,011,0002,379,776
4Dec 28, 2022 06:1327,62750,976,71923,299,0001,013,0002,392,064
5Dec 28, 2022 06:1327,62846,695,08024,313,00002,527,232
6Dec 28, 2022 06:1327,64046,770,76323,310,0001,013,0002,519,040
7Dec 28, 2022 06:1327,74044,184,17224,411,00002,387,968
8Dec 28, 2022 06:1327,91345,634,21124,563,00002,527,232
9Dec 28, 2022 06:1327,94845,850,54024,594,00002,506,752
10Dec 28, 2022 06:1333,00589,014,71629,044,18502,228,224
11Dec 28, 2022 06:1333,22598,793,48629,237,89902,228,224
12Dec 28, 2022 06:1333,37797,586,92729,372,07302,232,320