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:23Robert BurkeRobert BurkeScore: 23,193Success
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:2319,65380,285,17117,294,40402,211,840
2Dec 28, 2022 06:2319,67782,457,18617,315,87202,211,840
3Dec 28, 2022 06:2319,67871,315,70317,316,78702,211,840
4Dec 28, 2022 06:2323,15647,124,37019,359,0001,018,0002,281,472
5Dec 28, 2022 06:2323,16640,959,52020,386,00002,281,472
6Dec 28, 2022 06:2323,18348,584,80220,401,00002,281,472
7Dec 28, 2022 06:2323,19347,141,00820,410,00002,379,776
8Dec 28, 2022 06:2323,19947,208,43219,395,0001,020,0002,379,776
9Dec 28, 2022 06:2323,20143,414,09019,397,0001,020,0002,383,872
10Dec 28, 2022 06:2323,23037,379,90419,420,0001,022,0002,281,472
11Dec 28, 2022 06:2323,29754,497,44819,476,0001,025,0002,379,776
12Dec 28, 2022 06:2323,37742,489,29920,572,00002,281,472