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 listAug 2, 2022 17:40Robert BurkeRobert BurkeScore: 36,458Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Aug 2, 2022 17:4035,77483,043,44731,480,82802,228,224
2Aug 2, 2022 17:4036,25056,858,40530,904,000996,0002,498,560
3Aug 2, 2022 17:4036,26094,490,29731,908,40102,232,320
4Aug 2, 2022 17:4036,26656,873,96330,917,000997,0002,535,424
5Aug 2, 2022 17:4036,27051,078,72228,926,0002,992,0002,387,968
6Aug 2, 2022 17:4036,392102,492,57932,024,73902,224,128
7Aug 2, 2022 17:4036,45851,139,00629,076,0003,007,0002,396,160
8Aug 2, 2022 17:4036,46358,035,82729,079,0003,008,0002,273,280
9Aug 2, 2022 17:4036,47458,294,76631,094,0001,003,0002,494,464
10Aug 2, 2022 17:4036,49453,259,30631,112,0001,003,0002,400,256
11Aug 2, 2022 17:4036,53255,938,18029,135,0003,013,0002,396,160
12Aug 2, 2022 17:4036,60957,436,30931,210,0001,006,0002,273,280