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 7, 2026 17:17b pb pScore: 936,084Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 7, 2026 17:17930,365845,609,823810,724,0007,997,0002,285,568
2Apr 7, 2026 17:17931,206842,626,832810,467,0008,994,0002,379,776
3Apr 7, 2026 17:17932,876846,762,061812,932,0007,999,0002,371,584
4Apr 7, 2026 17:17933,105846,946,637814,131,0007,001,0002,285,568
5Apr 7, 2026 17:17936,084848,996,070815,757,0007,997,0002,387,968
6Apr 7, 2026 17:17936,935856,449,396820,506,0003,997,0002,285,568
7Apr 7, 2026 17:17937,947853,287,085818,399,0006,994,0002,404,352
8Apr 7, 2026 17:17942,063855,865,975820,015,0009,000,0002,310,144
9Apr 7, 2026 17:17943,053859,049,791820,889,0008,998,0002,285,568