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 29, 2026 08:48olliecrowolliecrowScore: 13,504Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 29, 2026 08:4913,45426,539,5909,867,0001,973,0002,453,504
2Apr 29, 2026 08:4913,46727,777,8259,876,0001,975,0002,322,432
3Apr 29, 2026 08:4913,49424,947,10310,796,0001,079,0002,441,216
4Apr 29, 2026 08:4913,50125,006,7019,901,0001,980,0002,457,600
5Apr 29, 2026 08:4913,50429,571,3679,904,0001,980,0002,461,696
6Apr 29, 2026 08:4913,56425,125,1288,953,0002,984,0002,465,792
7Apr 29, 2026 08:4913,58231,490,5799,961,0001,992,0002,457,600
8Apr 29, 2026 08:4913,58529,997,3849,963,0001,992,0002,449,408
9Apr 29, 2026 08:4913,61726,293,6129,986,0001,997,0002,445,312