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 listJun 17, 2021 15:29Andrey TsvetkovAndrey TsvetkovScore: 2,039,569Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 17, 2021 15:292,032,0101,852,520,7131,788,168,40102,260,992
2Jun 17, 2021 15:292,039,5691,863,564,4971,794,820,57702,215,936
3Jun 17, 2021 15:292,041,4041,857,767,4041,796,435,36402,232,320