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:45Robert BurkeRobert BurkeScore: 19,318Success
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:4518,98056,914,61616,702,80202,232,320
2Dec 28, 2022 02:4519,00381,641,75916,722,55402,232,320
3Dec 28, 2022 02:4519,06392,202,71916,775,42202,228,224
4Dec 28, 2022 02:4519,24732,365,68914,945,0001,992,0002,392,064
5Dec 28, 2022 02:4519,29432,642,64515,981,000998,0002,387,968
6Dec 28, 2022 02:4519,29743,192,08514,984,0001,997,0002,392,064
7Dec 28, 2022 02:4519,31834,112,27415,000,0002,000,0002,392,064
8Dec 28, 2022 02:4519,32536,213,19815,006,0002,000,0002,392,064
9Dec 28, 2022 02:4519,34134,224,75515,018,0002,002,0002,392,064
10Dec 28, 2022 02:4519,39947,588,64014,059,0003,012,0002,392,064
11Dec 28, 2022 02:4519,41738,992,88015,077,0002,010,0002,400,256
12Dec 28, 2022 02:4519,51439,381,40414,142,0003,030,0002,273,280