Blum integer: Difference between revisions
→{{header|C}}: Removed superfluous code.
m (→{{header|C}}: Minor change.) |
(→{{header|C}}: Removed superfluous code.) |
||
Line 27:
{{trans|Wren}}
<syntaxhighlight lang="c">#include <stdio.h>
#include <locale.h>
void primeFactors(int n, int *factors, int *length) {
Line 79 ⟶ 64:
int f[20], blum[50], counts[4] = {0}, digits[4] = {1, 3, 5, 7};
setlocale(LC_NUMERIC, "");
while (
primeFactors(i, f, &length);
if (length == 2 && f[0] != f[1] && f[0] % 4 == 3 && f[1] % 4 == 3) {
|