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 listJan 1, 2025 18:16zielajzielajScore: 3,641Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jan 1, 2025 17:073,47819,071,7211,020,0002,041,0002,457,600
2Jan 1, 2025 17:073,54016,965,5691,038,0002,077,0002,281,472
3Jan 2, 2025 20:273,56021,287,7761,044,0002,089,0002,465,792
4Jan 1, 2025 17:073,58618,470,9321,052,0002,104,0002,273,280
5Jan 1, 2025 18:163,64119,897,8501,068,0002,136,0002,457,600
6Jan 2, 2025 20:273,66519,274,2221,075,0002,150,0002,457,600
7Jan 2, 2025 20:273,67319,038,7391,077,0002,155,0002,293,760
8Jan 1, 2025 18:163,68223,129,2421,080,0002,160,0002,461,696
9Jan 1, 2025 18:163,76519,199,1752,209,0001,104,0002,469,888