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 21, 2026 14:44Charles CabergsCharles CabergsScore: 26,747Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 21, 2026 14:4526,62040,823,31422,408,0001,018,0002,441,216
2Apr 21, 2026 14:4526,68843,177,39921,444,0002,042,0002,433,024
3Apr 21, 2026 14:4526,73043,156,42821,478,0002,045,0002,433,024
4Apr 21, 2026 14:4526,73247,087,48622,503,0001,022,0002,433,024
5Apr 21, 2026 14:4526,74741,913,12221,492,0002,046,0002,428,928
6Apr 21, 2026 14:4526,79238,323,65621,527,0002,050,0002,433,024
7Apr 21, 2026 14:4526,80343,031,74722,562,0001,025,0002,424,832
8Apr 21, 2026 14:4526,82840,787,43421,556,0002,053,0002,334,720
9Apr 21, 2026 14:4526,89241,585,21122,637,0001,028,0002,424,832