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 14, 2026 14:59limanjun99limanjun99Score: 18,077Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 14, 2026 14:5917,29041,734,10812,172,0003,043,0002,355,200
2Apr 14, 2026 14:5917,48537,468,91712,310,0003,077,0002,367,488
3Apr 14, 2026 14:5918,07441,680,67512,923,0002,982,0002,469,888
4Apr 14, 2026 14:5918,07534,268,62712,924,0002,982,0002,445,312
5Apr 14, 2026 14:5918,07730,375,86312,926,0002,982,0002,453,504
6Apr 14, 2026 14:5918,08837,475,62914,923,000994,0002,461,696
7Apr 14, 2026 14:5918,10346,921,24912,944,0002,987,0002,445,312
8Apr 14, 2026 14:5918,13642,355,31714,963,000997,0002,437,120
9Apr 14, 2026 14:5918,15037,536,92012,978,0002,994,0002,461,696