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 23, 2025 10:258QTK8QTKScore: 80,839Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jan 23, 2025 10:2580,76496,891,92367,068,0004,004,0002,461,696
2Jan 23, 2025 10:2580,83997,579,08667,131,0004,007,0002,457,600
3Jan 23, 2025 10:2580,86894,187,61468,158,0003,006,0002,465,792