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 29, 2026 13:51TudyMTudyMScore: 33,672Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 29, 2026 14:0133,62547,571,93028,570,0001,020,0002,375,680
2Apr 29, 2026 14:0133,63848,601,61327,561,0002,041,0002,367,488
3Apr 29, 2026 14:0133,64246,536,80428,585,0001,020,0002,359,296
4Apr 29, 2026 14:0133,66949,399,52228,608,0001,021,0002,310,144
5Apr 29, 2026 14:0133,67245,726,84127,589,0002,043,0002,453,504
6Apr 29, 2026 14:0133,67545,175,25028,613,0001,021,0002,363,392
7Apr 29, 2026 14:0133,67940,883,49927,594,0002,044,0002,375,680
8Apr 29, 2026 14:0133,70150,986,89128,635,0001,022,0002,375,680
9Apr 29, 2026 14:0133,77244,080,93628,696,0001,024,0002,310,144