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, 2024 16:15zielajzielajError
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, 2024 16:1500000Error: expected "51379088657462 ", got "51376941173815 "stderr
2Dec 28, 2024 16:153,79120,503,8722,224,0001,112,0002,457,600
3Dec 28, 2024 16:153,80519,017,3802,232,0001,116,0002,457,600
4Dec 28, 2024 16:154,86821,116,6933,213,0001,071,0002,535,424