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 listJul 27, 2023 17:58Steven Di RoccoSteven Di RoccoScore: 7,344,169Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 27, 2023 17:587,322,0346,520,338,6726,443,390,26202,256,896
2Jul 27, 2023 17:587,344,1696,523,860,7596,462,868,44802,252,800
3Jul 27, 2023 17:587,391,5886,568,835,8856,504,597,82602,256,896