W
W
whoareyoutofuckinglecture2018-10-18 19:11:07
Programming
whoareyoutofuckinglecture, 2018-10-18 19:11:07

I can't understand the task. What did the author[2.0] mean?

First question: I can't understand the assignment. What did the teacher mean?
Hello!
I got this assignment at the university:
5bc8ad3262aee673717759.png
In the process of solving it, it turned out that I misinterpreted the concept of symmetry, which I was told in the answer to the first question (see link in the header).
Initially, I thought that symmetric means binary numbers a la: "111000" or "101010", however, in the first question it turned out that the author probably meant a symmetry of this kind: "1100 | 0011", that is, the second half of the number is mirror-symmetrical to the first.
And everything would be fine, if not for the following problem: for an array of prime numbers, I could not find binary numbers that would be symmetrical even in this form ("111000" or "101010"), even in "
I generate prime numbers using the Eratosthenes algorithm.
Note: the teacher is not the author of this assignment, moreover: I am a correspondence student, I live in another city, therefore it is very difficult for me to contact the teacher and ask this question.
Please let me know if there is any error in this question.
For for an array of SIMPLE numbers, none of the above symmetry conditions is satisfied.
I'm at a loss..

Answer the question

In order to leave comments, you need to log in

1 answer(s)
0
0xD34F, 2018-10-18
@whoareyoutofuckinglecture

none of the above symmetry conditions are met

Yah? Well, let's see:
3 is a prime number, in binary form it looks like 11, it is quite symmetrical
5 is a prime number, 101 is also symmetrical
7 - 111, symmetrically
17 - 10001, symmetrically
Well, and so on.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question