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 16:188QTK8QTKScore: 46,559Success
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 16:1846,54269,144,32836,962,0003,995,0002,318,336
2Jan 23, 2025 16:1846,55965,985,36136,975,0003,997,0002,465,792
3Jan 23, 2025 16:1846,77464,463,96038,150,0003,011,0002,457,600