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 19:44zielajzielajScore: 3,675Success
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 19:443,61428,914,2762,120,0001,060,0002,461,696
2Jan 1, 2025 19:443,67519,790,5211,078,0002,156,0002,535,424
3Jan 1, 2025 19:443,71618,923,4171,090,0002,180,0002,465,792