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 listMar 26, 2026 12:23Dominique GarmierDominique GarmierScore: 41,551Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Mar 27, 2026 16:4141,39764,783,82335,418,0001,011,0002,473,984
2Mar 27, 2026 16:4141,41360,970,44036,443,00002,277,376
3Mar 26, 2026 12:2341,52558,017,16135,527,0001,015,0002,486,272
4Mar 26, 2026 12:2341,55160,018,04335,550,0001,015,0002,277,376
5Mar 26, 2026 12:2341,61159,615,25635,601,0001,017,0002,478,080
6Mar 27, 2026 16:4141,70664,146,75035,682,0001,019,0002,277,376