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:418QTK8QTKScore: 77,230Success
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:4177,12792,188,36163,880,0003,992,0002,285,568
2Jan 23, 2025 10:4177,23091,465,23163,965,0003,997,0002,457,600
3Jan 23, 2025 10:4177,28190,838,06565,007,0003,000,0002,457,600