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 listJan 24, 2024 19:10AnSaAnSaError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jan 24, 2024 19:0900000Error: expected "51069770417129 ", got "51069770417126"
2Jan 24, 2024 19:11200,434236,866,638176,382,05502,232,320
3Jan 24, 2024 19:11200,756239,782,468176,665,31902,244,608
4Jan 24, 2024 19:11200,869240,364,879176,764,69602,232,320
5Jan 24, 2024 19:10210,678242,195,090185,396,65802,236,416
6Jan 24, 2024 19:10210,799249,769,276185,503,11002,240,512
7Jan 24, 2024 19:10211,348250,504,662185,986,09202,228,224