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 24, 2026 19:49olliecrowolliecrowScore: 139,156Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 24, 2026 19:50138,698141,288,832120,055,0002,000,0002,457,600stderr
2Apr 24, 2026 19:50138,994142,987,523121,313,0001,002,0002,457,600stderr
3Apr 24, 2026 19:50139,001140,064,784122,321,00002,469,888stderr
4Apr 24, 2026 19:50139,135137,442,077121,436,0001,003,0002,469,888stderr
5Apr 24, 2026 19:50139,156138,962,451121,455,0001,003,0002,473,984stderr
6Apr 24, 2026 19:50139,176140,767,337121,472,0001,003,0002,469,888stderr
7Apr 24, 2026 19:50139,337143,423,531121,612,0001,005,0002,461,696stderr
8Apr 24, 2026 19:50139,556139,180,483121,812,000998,0002,445,312stderr
9Apr 24, 2026 19:50139,572143,543,426120,827,0001,997,0002,473,984stderr