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 listJul 23, 2023 09:22matsuoka-601matsuoka-601Score: 27,669Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 23, 2023 09:2227,49248,754,37021,169,0003,024,0002,375,680
2Jul 23, 2023 09:2227,49450,686,86321,171,0003,024,0002,265,088
3Jul 23, 2023 09:2227,55748,825,38221,219,0003,031,0002,461,696
4Jul 23, 2023 09:2227,57092,193,67124,261,55402,224,128
5Jul 23, 2023 09:2227,57650,223,44120,223,0004,044,0002,506,752
6Jul 23, 2023 09:2227,62249,894,50419,243,0005,064,0002,473,984
7Jul 23, 2023 09:2227,66945,793,86221,306,0003,043,0002,338,816
8Jul 23, 2023 09:2227,67282,157,70224,351,12902,191,360
9Jul 23, 2023 09:2227,70094,333,79724,376,01702,301,952
10Jul 23, 2023 09:2227,79244,881,44920,381,0004,076,0002,342,912
11Jul 23, 2023 09:2227,82061,347,18720,402,0004,080,0002,371,584
12Jul 23, 2023 09:2227,96848,364,49021,536,0003,076,0002,469,888