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 14, 2026 15:03limanjun99limanjun99Score: 17,657Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 14, 2026 15:0317,49537,134,30612,317,0003,079,0002,449,408
2Apr 14, 2026 15:0317,57640,589,71215,467,00002,338,816
3Apr 14, 2026 15:0317,58042,533,47513,408,0002,062,0002,437,120
4Apr 14, 2026 15:0317,64839,032,35813,460,0002,070,0002,338,816
5Apr 14, 2026 15:0317,65737,044,51714,503,0001,035,0002,445,312
6Apr 14, 2026 15:0318,23137,028,29213,035,0003,008,0002,437,120
7Apr 14, 2026 15:0318,26136,810,56313,057,0003,013,0002,449,408
8Apr 14, 2026 15:0318,28843,463,15913,076,0003,017,0002,281,472
9Apr 14, 2026 15:0318,29836,451,62614,090,0002,012,0002,519,040