Problem 52789. Easy Sequences 26: Prime-Integer Line Segments
At the first quadrant in the
-plane, you are asked to construct a line segment with the following specifications:
- Select a prime point along the x-axis.
- Select an integer point along the y-axis.
- Connect these points to form a line segment.
How many line segments, with the abovementioned specifications, can be constructed that pass through a given point
?
For example, in the figure below, it is shown that 2 such lines pass through the point
, with lines connecting prime points
and
to integer points
and
, respectively. It can be proven that these are the only line segments, drawn as specified, that pass through
.
NOTE: It is possible that no line segments, as specified, pass through a given point.
Solution Stats
Problem Comments
Solution Comments
Show commentsGroup

Special Functions II
- 10 Problems
- 1 Finishers
- Estimate π from certain values of the zeta function
- Evaluate the generalized hypergeometric function
- Compute an integral of an exponential function
- Determine aquifer properties: unsteady pump test in a confined aquifer
- Compute an integral of a product of sinusoids
- Compute a sum of Ramanujan
- Compute the fractional derivative
- Compute the sum of reciprocals of quadratics
- Evaluate the Kelvin functions
- Compute the period of a pendulum started from a finite initial angle
Problem Recent Solvers5
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!