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:10Andrey TsvetkovAndrey TsvetkovScore: 2,056,979Success
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:102,050,8421,869,940,4941,804,741,34602,260,992
2Jun 17, 2021 15:102,056,9791,865,350,5211,810,141,13802,289,664
3Jun 17, 2021 15:102,060,9771,876,576,8011,813,659,86602,203,648