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 12, 2024 21:35zielajzielajScore: 9,514Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 12, 2024 21:359,47023,686,7068,334,00002,269,184
2Dec 12, 2024 21:359,49222,507,4218,353,00002,326,528
3Dec 12, 2024 21:359,49724,831,0468,357,00002,326,528
4Dec 12, 2024 21:359,50925,255,2787,322,0001,046,0002,531,328
5Dec 12, 2024 21:359,51423,638,9617,326,0001,046,0002,330,624
6Dec 12, 2024 21:359,51626,732,8148,374,00002,334,720
7Dec 12, 2024 21:359,52425,117,1868,381,00002,322,432
8Dec 12, 2024 21:359,67624,383,8267,451,0001,064,0002,322,432
9Dec 12, 2024 21:359,72724,391,0537,490,0001,070,0002,330,624