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 listMar 10, 2026 04:28olliecrowolliecrowScore: 17,641Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Mar 10, 2026 04:2817,57638,865,27015,467,00002,473,984
2Mar 10, 2026 04:2817,59228,066,23115,481,00002,482,176
3Mar 10, 2026 04:2817,61331,265,92215,499,00002,469,888
4Mar 10, 2026 04:2817,62239,592,97615,507,00002,478,080
5Mar 10, 2026 04:2817,64141,648,57715,524,00002,473,984
6Mar 10, 2026 04:2817,66631,600,16015,546,00002,355,200
7Mar 10, 2026 04:2817,69934,185,54215,575,00002,482,176
8Mar 10, 2026 04:2817,73334,120,08115,605,00002,482,176
9Mar 10, 2026 04:2817,80239,488,69915,666,00002,473,984