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 26, 2026 13:03Charles CabergsCharles CabergsScore: 22,705Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 26, 2026 13:0322,56138,061,69117,869,0001,985,0002,338,816
2Apr 26, 2026 13:0322,65136,563,09217,940,0001,993,0002,342,912
3Apr 26, 2026 13:0322,66733,693,31317,953,0001,994,0002,351,104
4Apr 26, 2026 13:0322,67838,116,87917,962,0001,995,0002,363,392
5Apr 26, 2026 13:0322,70540,122,22916,984,0002,997,0002,342,912
6Apr 26, 2026 13:0322,75138,065,47318,019,0002,002,0002,351,104
7Apr 26, 2026 13:0322,79037,654,99117,048,0003,008,0002,342,912
8Apr 26, 2026 13:0322,92034,500,34619,162,0001,008,0002,338,816
9Apr 26, 2026 13:0322,97137,286,70717,183,0003,032,0002,355,200