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 listJan 12, 2026 16:18vahookvahookScore: 5,141Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jan 12, 2026 16:185,10018,460,3373,366,0001,122,0002,277,376
2Jan 12, 2026 16:185,12522,880,7973,383,0001,127,0002,277,376
3Jan 12, 2026 16:185,13623,366,4273,390,0001,130,0002,494,464
4Jan 12, 2026 16:185,13822,365,0983,391,0001,130,0002,277,376
5Jan 12, 2026 16:185,14122,665,8253,393,0001,131,0002,277,376
6Jan 12, 2026 16:185,14318,113,6053,395,0001,131,0002,277,376
7Jan 12, 2026 16:185,15923,099,8913,405,0001,135,0002,490,368
8Jan 12, 2026 16:185,16918,925,0773,412,0001,137,0002,494,464
9Jan 12, 2026 16:185,33021,736,2973,518,0001,172,0002,277,376