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 1, 2025 20:21zielajzielajScore: 3,644Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jan 1, 2025 20:213,49520,303,8821,025,0002,051,0002,281,472
2Jan 1, 2025 20:213,64416,817,6661,069,0002,138,0002,297,856
3Jan 1, 2025 20:213,74419,652,0701,098,0002,197,0002,465,792