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 listApr 24, 2026 08:33Dominique GarmierDominique GarmierScore: 39,860Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 24, 2026 08:3439,64653,244,07732,896,0001,993,0002,375,680
2Apr 24, 2026 08:3439,80553,530,63533,028,0002,001,0002,310,144
3Apr 24, 2026 08:3439,83555,029,92733,052,0002,003,0002,387,968
4Apr 24, 2026 08:3439,84448,334,99533,060,0002,003,0002,387,968
5Apr 24, 2026 08:3439,86051,070,42733,073,0002,004,0002,322,432
6Apr 24, 2026 08:3440,26848,798,46334,424,0001,012,0002,453,504
7Apr 24, 2026 08:3440,36948,925,11635,525,00002,379,776
8Apr 24, 2026 08:3440,44347,923,95634,574,0001,016,0002,383,872
9Apr 24, 2026 08:3440,45751,214,54734,586,0001,017,0002,387,968