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 20, 2026 20:22Charles CabergsCharles CabergsScore: 135,256Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 20, 2026 20:24134,840144,559,635116,666,0001,994,0002,367,488
2Apr 20, 2026 20:24135,013145,496,631117,814,000998,0002,412,544
3Apr 20, 2026 20:24135,040143,452,449117,838,000998,0002,383,872
4Apr 20, 2026 20:24135,227139,687,085117,000,0002,000,0002,371,584
5Apr 20, 2026 20:24135,256140,649,950115,026,0004,000,0002,383,872
6Apr 20, 2026 20:24135,411140,358,528117,160,0002,002,0002,371,584
7Apr 20, 2026 20:24135,843140,593,699117,533,0002,009,0002,375,680
8Apr 20, 2026 20:24135,936146,667,769118,619,0001,005,0002,273,280
9Apr 20, 2026 20:24136,152142,698,154117,818,0001,996,0002,379,776