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 09:46olliecrowolliecrowScore: 12,209Success
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 09:4712,18124,928,1659,648,0001,072,0002,461,696
2Apr 29, 2026 09:4712,18425,976,3839,650,0001,072,0002,453,504
3Apr 29, 2026 09:4712,18835,435,1809,654,0001,072,0002,441,216
4Apr 29, 2026 09:4712,20128,060,5499,664,0001,073,0002,441,216
5Apr 29, 2026 09:4712,20927,102,8609,670,0001,074,0002,330,624
6Apr 29, 2026 09:4712,23634,098,3899,692,0001,076,0002,461,696
7Apr 29, 2026 09:4712,25627,636,8738,629,0002,157,0002,457,600
8Apr 29, 2026 09:4712,31235,233,9578,668,0002,167,0002,449,408
9Apr 29, 2026 09:4712,32525,139,4128,874,0001,972,0002,453,504