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 16, 2026 21:20Pavel SkripkinPavel SkripkinScore: 1,848,001Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 16, 2026 21:201,841,3661,641,817,7351,618,403,0001,999,0002,416,640
2Apr 16, 2026 21:201,843,9801,641,299,7161,621,703,000999,0002,277,376
3Apr 16, 2026 21:201,844,1741,645,986,0631,622,873,00002,408,448
4Apr 16, 2026 21:201,846,2251,650,015,3741,623,679,000999,0002,404,352
5Apr 16, 2026 21:201,848,0011,653,904,5001,624,242,0001,999,0002,285,568
6Apr 16, 2026 21:201,850,1051,655,185,5821,627,092,0001,000,0002,281,472
7Apr 16, 2026 21:201,850,3741,648,848,3651,627,330,000999,0002,281,472
8Apr 16, 2026 21:201,852,8431,652,110,7721,628,503,0001,999,0002,539,520
9Apr 16, 2026 21:201,885,1451,682,210,1321,657,929,000999,0002,408,448