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 28, 2026 09:35TudyMTudyMScore: 58,989Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 28, 2026 09:3658,71966,571,91649,647,0002,026,0002,326,528
2Apr 28, 2026 09:3658,73174,198,59448,644,0003,040,0002,371,584
3Apr 28, 2026 09:3658,78270,614,78149,701,0002,028,0002,359,296
4Apr 28, 2026 09:3658,97670,663,17150,882,0001,017,0002,375,680
5Apr 28, 2026 09:3658,98969,487,92048,917,0002,994,0002,367,488
6Apr 28, 2026 09:3659,02367,625,59849,944,0001,997,0002,433,024
7Apr 28, 2026 09:3659,03768,891,11947,957,0003,996,0002,371,584
8Apr 28, 2026 09:3659,12569,043,12050,029,0002,001,0002,367,488
9Apr 28, 2026 09:3659,20471,866,76151,079,0001,021,0002,326,528