The tag has no wiki summary.

learn more… | top users | synonyms

1
vote
2answers
84 views

What is the fastest to find just smallest prime number to a given number N where N can be as large as 10^18?

During a programming contest I was asked to find just smallest prime number to given number N. As Sieve cannot be used and brute force also doesn't work. So, I was wondering is there any other faster ...
0
votes
1answer
24 views

Using a fractional argument when dereferencing an array in C or C++ [closed]

I like to ask that what happens if we pass a fractional number when dereferencing an array in C or C++. An example of what I mean: ...
7
votes
3answers
194 views

Inheritance, and dynamic access to members/attributes and methods in Java-like languages

I have a question about inheritance in Java-like OO programming languages. It came up in my compiler class, when I explained how to compile methods and their invocation. I was using Java as example ...