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 02:41Robert BurkeRobert BurkeScore: 20,114Success
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 02:4119,87372,983,31317,488,22302,256,896
2Dec 28, 2022 02:4119,88265,029,74117,496,53402,224,128
3Dec 28, 2022 02:4119,94387,891,39117,550,21202,228,224
4Dec 28, 2022 02:4120,03030,779,39016,590,0001,036,0002,273,280
5Dec 28, 2022 02:4120,05540,004,39916,610,0001,038,0002,396,160
6Dec 28, 2022 02:4120,07441,245,55617,665,00002,273,280
7Dec 28, 2022 02:4120,11439,367,94817,700,00002,392,064
8Dec 28, 2022 02:4120,12839,939,80517,713,00002,396,160
9Dec 28, 2022 02:4120,20343,861,41517,779,00002,396,160
10Dec 28, 2022 02:4120,32745,412,62016,895,000993,0002,273,280
11Dec 28, 2022 02:4120,33242,972,88516,898,000994,0002,273,280
12Dec 28, 2022 02:4120,35737,915,87316,919,000995,0002,392,064